Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

วิธีแก้ข้อผิดพลาด 'Problem Sending the Command to the Program' ใน Excel

แก้ There was a Problem Sending the Command to the Program: หากคุณเจอปัญหาเปิดไฟล์ Microsoft Excel และได้ข้อความ "There was a problem sending the command to the program" แสดงว่า Windows ไม่สามารถเชื่อมต่อกับ Microsoft Office Applications ได้ หากคลิก OK บนข้อผิดพลาด และลองเปิดไฟล์อีกครั้ง จะเปิดได้ปกติ แต่ข้อผิดพลาดจะขึ้นใหม่ทุกครั้งที่รีบูทคอมพิวเตอร์

เมื่อพยายามเปิดไฟล์ Microsoft Office เช่น Word document, Excel spreadsheet ฯลญ อาจได้ข้อความผิดพลาดดังต่อไปนี้:

  • There was a problem sending the command to the program.
  • An error occurred when sending commands to the program
  • Windows cannot find the file, Make sure you typed the name correctly, and then try again.
  • Cannot find the file (or one of its components). Make sure the path and filename are correct and that all required libraries are available.

คุณอาจเจอข้อผิดพลาดใดข้อผิดพลาดหนึ่ง และในบางกรณี ไม่ได้เปิดไฟล์ที่ต้องการเลย ขึ้นอยู่กับการตั้งค่าระบบของแต่ละคน ลองแก้ไขด้วยคู่มือด้านล่าง

There was a Problem Sending the Command to the Program [FIXED]

สำคัญ: สร้างจุดกู้คืนระบบ (Restore Point) ก่อนเริ่มต้น

วิธีที่ 1: ปิดใช้งาน Dynamic Data Exchange (DDE)

  1. เปิด Microsoft Excel คลิก Office ORB (หรือเมนู FILE) แล้วคลิก Excel Options
  2. ใน Excel Options เลือก Advanced จากเมนูด้านซ้าย
  3. เลื่อนลงส่วน General ส่วนล่าง ยกเลิกติ๊ก Ignore other applications that use Dynamic Data Exchange (DDE)
  4. คลิก OK บันทึกการเปลี่ยนแปลง และรีสตาร์ทคอมพิวเตอร์

วิธีที่ 2: ปิดใช้งานตัวเลือก "Run as administrator"

  1. ไปที่ Start menu พิมพ์ชื่อโปรแกรมที่มีปัญหา
  2. คลิกขวาโปรแกรม เลือก Open file location
  3. คลิกขวาโปรแกรมอีกครั้ง เลือก Properties
  4. ไปแท็บ Compatibility ยกเลิกติ๊ก Run this program as an administrator
  5. คลิก Apply แล้ว OK
  6. รีสตาร์ทคอมพิวเตอร์ และลองรันโปรแกรมอีกครั้ง ดูว่าสามารถ แก้ There was a Problem Sending the Command to the Program error ได้หรือไม่

วิธีที่ 3: รีเซ็ตการเชื่อมโยงไฟล์ (File Associations)

  1. คลิกขวาไฟล์ Office เลือก Open with…
  2. หน้าจอถัดไป คลิก More apps เลื่อนลง คลิก Look for another app on this PC หมายเหตุ: ตรวจสอบว่า Always use this application for this file type ถูกติ๊ก
  3. ไปที่ C:\Program Files (x86)\Microsoft Office\ (สำหรับ 64-bit) หรือ C:\Program Files\Microsoft Office\ (สำหรับ 32-bit) เลือก EXE file ที่ถูกต้อง ตัวอย่าง: หากเป็นไฟล์ Excel ให้ไปที่ตำแหน่งข้างต้น คลิก OfficeXX (XX = เวอร์ชัน Office) แล้วเลือก EXCEL.EXE
  4. หลังเลือกไฟล์แล้ว คลิก Open
  5. สิ่งนี้จะรีเซ็ต Default file association สำหรับไฟล์ประเภทนั้นโดยอัตโนมัติ

วิธีที่ 4: ซ่อมแซม Microsoft Office

  1. กด Windows + R พิมพ์ appwiz.cpl กด Enter เปิด Programs and Features
  2. จากรายการค้นหา Microsoft Office คลิกขวา เลือก Change
  3. คลิกตัวเลือก Repair แล้วคลิก Continue
  4. เมื่อซ่อมแซมเสร็จ รีสตาร์ทคอมพิวเตอร์ ควรจะ แก้ There was a Problem Sending the Command to the Program error หากไม่ได้ ลองวิธีถัดไป

วิธีที่ 5: ปิดใช้งาน Add-ins

  1. เปิดโปรแกรม Office ที่มีปัญหา (เช่น Excel) คลิก Office ORB แล้ว Options
  2. เมนูด้านซ้ายเลือก Add-Ins ที่ด้านล่าง จาก Manage dropdown เลือก COM Add-ins คลิก Go
  3. ล้างติ๊ก Add-ins ตัวใดตัวหนึ่งในรายการ คลิก OK
  4. รีสตาร์ท Excel หรือโปรแกรม Office ที่มีปัญหา ดูว่าปัญหาแก้ไขหรือไม่
  5. หากยังคงมีปัญหา ทำซ้ำขั้นตอน 1-3 สำหรับ Add-ins ตัวอื่นในรายการ
  6. หากล้าง COM Add-ins ทั้งหมดแล้วยังมีปัญหา เลือก Excel Add-ins จาก Manage dropdown คลิก Go
  7. ยกเลิกติ๊กหรือล้าง Add-ins ทั้งหมดในรายการ คลิก OK
  8. รีสตาร์ท Excel ควรจะ แก้ There was a Problem Sending the Command to the Program ได้

วิธีที่ 6: ปิด Hardware Acceleration

  1. เปิดโปรแกรม Office ใดๆ คลิก Office ORB หรือ File tab เลือก Options
  2. เมนูด้านซ้ายเลือก Advanced เลื่อนลงส่วน Display
  3. ภายใต้ Display ยกเลิกติ๊ก Disable hardware graphics acceleration
  4. คลิก OK และรีสตาร์ทคอมพิวเตอร์

วิธีที่ 7: แก้ไขผ่าน Registry

  1. กด Windows + R พิมพ์ regedit กด Enter เปิด Registry Editor
  2. ไปที่ Registry Key:
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office
  3. ภายใต้ Office key จะพบ Subkey ชื่อ 10.0, 11.0, 12.0 ฯลญ ขึ้นกับเวอร์ชัน Microsoft Office ที่ติดตั้ง
  4. ขยาย Key นั้น จะเห็น Access, Excel, Groove, Outlook ฯลญ
  5. ขยาย Key ที่เกี่ยวข้องกับโปรแกรมที่มีปัญหา จะพบ Data key เช่น: หาก Word มีปัญหา ให้ขยาย Word จะเห็น Data key อยู่ด้านล่าง
  6. คลิกขวา Data key เลือก Delete

ดูว่าสามารถ แก้ There was a Problem Sending the Command to the Program ได้หรือไม่

วิธีที่ 8: ปิด Antivirus ชั่วคราว

  1. คลิกขวาที่ Antivirus Program icon บน System Tray เลือก Disable
  2. เลือกช่วงเวลาที่ Antivirus จะปิดอยู่ (เลือกเวลาน้อยที่สุด เช่น 15 หรือ 30 นาที)
  3. ลองเปิด Microsoft Excel อีกครั้ง ดูว่าข้อผิดพลาด stdole32.tlb หายหรือไม่

บทความแนะนำสำหรับคุณ:

  • แก้ Can't turn on Windows Firewall Error code 0x80070422
  • ไม่สามารถเปิดไฟล์ PDF ใน Internet Explorer
  • แก้ Something Went Wrong While Syncing Mail App In Windows 10
  • แก้ Cannot Open Your Default Email Folders. The Information Store Could Not Be Opened

เสร็จสิ้น! คุณได้ แก้ There was a Problem Sending the Command to the Program error เรียบร้อยแล้ว หากยังมีคำถาม สามารถสอบถามได้ในส่วนความคิดเห็น