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

แก้ไข: Problem Sending the Command to the Program

Windows เปลี่ยนใจให้ประหลาดใจตอนเจอข้อความผิดพลาดแบบนี้มาจากที่ไหนไม่รู้ "There was a problem sending a command to the program" มักบ่งชี้ว่าหน้าต่างล้มเหลวในการเชื่อมต่อกับ MS Office Applications (Excel, Word, Access database ฯลฯ) ในขั้นตอนการส่งคำสั่ง DDE (Dynamic Data Exchange) ไปยัง MS Office applications ผลคือไม่สามารถรัน MS Office Applications ได้

บางครั้ง ข้อผิดพลาดนี้แก้เองได้ เพราะข้อความโผล่แค่ครั้งเดียว และแอปพลิเคชันรันได้ในครั้งที่ 2-3 แต่ไม่ควรทิ้งไว้ เพราะอาจกลับมา ต้องแก้ด้วยตนเอง

แก้ไข: Problem Sending the Command to the Program

หากมี Microsoft's Compatibility Viewer ให้ถอนติดตั้งและลองเปิดไฟล์ Excel หากไม่ได้ ให้ repair Microsoft Office (จาก programs and features window) แล้วเช็ค

ซ่อมแซม System Files ที่เสียหาย

ดาวน์โหลดและรัน Restoro สแกนไฟล์เสียหายจาก ที่นี่ หากพบไฟล์เสียหาย/หายไป ให้ซ่อมแซมด้วย Restoro พร้อมกับทำ Methods ด้านล่าง

วิธีที่ 1: ปิด Run program as administrator

เลือก Properties โดยคลิกขวาที่ shortcut ของแอปพลิเคชันที่แสดงข้อผิดพลาด และเลือกแท็บ Compatibility

แก้ไข: Problem Sending the Command to the Program

ล้างเครื่องหมายถูก Run program as administrator หากติ๊กอยู่หรือเปิดอยู่

แก้ไข: Problem Sending the Command to the Program

วิธีที่ 2: ตรวจสอบ DDE Option (Excel)

เปิด MS Office EXCEL และเปิดกล่อง Excel Options จาก OFFICE Menu โดยคลิกที่ Office icon มุมซ้ายบนของแอปพลิเคชัน และคลิก Advanced

หาตัวเลือกชื่อ Ignore other applications that use Dynamic Data Exchange (DDE) ภายใต้ General Options และล้างเครื่องหมายถูก/ปิดมัน Restart office application หลัง apply changes

แก้ไข: Problem Sending the Command to the Program

หาก Ignore other applications that use Dynamic Data Exchange (DDE) option ไม่ได้ติ๊กหรือปิดอยู่ ให้เปิดใช้งานจาก checkbox และ restart office application แล้วล้างเครื่องหมายถูกอีกครั้ง และ restart office application อีกครั้ง

วิธีที่ 3: เปลี่ยนการตั้งค่า Excel

มีการตั้งค่าบางอย่างที่สามารถเปลี่ยนได้เพื่อดูว่าช่วยหรือไม่ มี options มากมายที่เปลี่ยนได้ แต่ไม่จำเป็นต้องเปลี่ยนทั้งหมด สามารถเปลี่ยนทีละอันและเช็คต่อไปว่าปัญหาแก้ไขหรือยัง

  1. เปิด Microsoft Excel
  2. คลิก File

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Options

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Advanced จากแถบซ้าย
  2. Uncheck ตัวเลือก Ignore other applications that use Dynamic Data Exchange (DDE) ตัวเลือกนี้ควรอยู่ใน General
  3. คลิก Ok เช็คว่าปัญหายังคงอยู่หรือไม่ หากยังคงอยู่ ดำเนินต่อ

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Trust Center
  2. คลิก Trust Center Settings

แก้ไข: Problem Sending the Command to the Program

  1. เลือก External Content
  2. Enable ทั้ง Security settings for Data Connections และ Security settings for Workbook Links
  3. คลิก Ok เช็คว่าปัญหาแก้ไขหรือยัง หากไม่ ดำเนินต่อ

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Trust Center
  2. คลิก Trust Center Settings
  3. เลือก Macro Settings
  4. เลือกตัวเลือก Enable all macros (not recommended; potentially dangerous code can run)
  5. ติ๊ก ตัวเลือก Trust access to the VBA project object model
  6. คลิก Ok เช็คว่าปัญหาแก้ไขหรือยัง หากไม่ ดำเนินต่อ

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Trust Center
  2. คลิก Trust Center Settings
  3. เลือก ActiveX Settings
  4. เลือกตัวเลือก Enable all controls without restrictions and without prompting. (not recommended; potentially dangerous code can run)
  5. คลิก Ok เช็คว่าปัญหาแก้ไขหรือยัง หากไม่ ดำเนินต่อ

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Trust Center
  2. คลิก Trust Center Settings
  3. เลือก Privacy Options
  4. Uncheck ตัวเลือก Check Microsoft Office Documents that are from or link to suspicious websites
  5. คลิก Ok เช็คว่าปัญหาแก้ไขหรือยัง

แก้ไข: Problem Sending the Command to the Program

วิธีที่ 4: Registry Fix

แม้วิธีที่ 1 ไม่ได้ผล ยังมีหวัง Registry fix นี้ได้ผลกับผู้ใช้มากมาย ทำตามขั้นตอนด้านล่างเพื่อแก้ไขผ่าน registry

หมายเหตุ: การทำลาย registry keys อาจก่อให้เกิดปัญหาร้ายแรง ควร backup registry keys ก่อนเผื่อผิดพลาด คลิกที่นี่สำหรับคู่มือขั้นตอน backup และ restore registry

  1. เปิด Run dialog box โดยกด Windows + R
  2. พิมพ์ regedit ในกล่อง กด Enter หรือคลิก ok

แก้ไข: Problem Sending the Command to the Program

  1. ตอนนี้ นำทางไปที่ address HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open หากไม่รู้นำทางไปที่ path นี้ ทำตามขั้นตอนด้านล่าง
    1. หาและดับเบิลคลิก HKEY_CLASSES_ROOT จากแถบซ้าย
    2. หาและดับเบิลคลิก Excel.Sheet.8 จากแถบซ้าย
    3. หาและดับเบิลคลิก shell จากแถบซ้าย
    4. หาและดับเบิลคลิก Open จากแถบซ้าย

แก้ไข: Problem Sending the Command to the Program

แก้ไข: Problem Sending the Command to the Program

  1. Right click ddeexec folder/key (ควรอยู่ใต้ Open) และเลือก Delete สามารถแค่ rename ddeexec folder/key ได้ หากไม่สบายใจ คลิกขวา เลือก Rename ตั้งชื่ออะไรก็ได้

แก้ไข: Problem Sending the Command to the Program

  1. ตอนนี้ เลือก command folder/key โดยคลิกซ้ายครั้งเดียว (ควรอยู่ใต้ Open)
  2. ดับเบิลคลิก Default string จากแถบขวา
  3. แทนที่ส่วน /e หรือ /dde ของ value ด้วย "%1" หมายเหตุ: รวม quotes ด้วย
  4. The Default string's value ควรเป็นแบบนี้ "C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE" "%1"
  5. คลิก Ok

แก้ไข: Problem Sending the Command to the Program

  1. ดับเบิลคลิก command string จากแถบขวา
  2. แทนที่ส่วน /e หรือ /dde ของ value ด้วย "%1" หมายเหตุ: รวม quotes ด้วย
  3. The Command string's value ควรเป็นแบบนี้ yh1BV5!!!!4!!!!MKKSkEXCELFiles>Of1RD?I9b9j[2hL]KhO& "%1"
  4. คลิก Ok

แก้ไข: Problem Sending the Command to the Program

แก้ไข: Problem Sending the Command to the Program

  1. ตอนนี้ เลื่อนขึ้นเล็กน้อยในแถบ และดับเบิลคลิก Excel.Sheet.12
  2. ทำซ้ำขั้นตอน 4-13 สำหรับ Excel.Sheet.12

เมื่อเสร็จ เช็คว่าปัญหาแก้ไขหรือยัง

วิธีที่ 5: ตรวจสอบและปิด Excel Add-ins

บางครั้ง Excel add-ins อาจก่อให้เกิดปัญหานี้ หากติดตั้ง add-in ใหม่ล่าสุด หรือประมาณเวลาที่ปัญหาเริ่มต้น นั่นเป็นตัวบ่งชี้ด้วย แม้จะไม่จำก็ตาม การปิดหรือถอนติดตั้ง add-ins จาก Excel ของคุณ ลองทำดูคุ้มค่า

  1. เปิด Excel
  2. คลิก File

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Options

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Add-ins จากแถบซ้าย
  2. เลือก Add-in จากรายการ

แก้ไข: Problem Sending the Command to the Program

  1. ใน Manage box คลิก Excel Add-ins แล้วคลิก Go…
  2. ใน Add-Ins available box uncheck ตัวเลือกถัดจาก add-in ที่ต้องการปิด แนะนำให้ปิด add-ins ทั้งหมดเพื่อเช็คว่าปัญหามาจาก add-ins หรือไม่
  3. เสร็จแล้ว คลิก ok

แก้ไข: Problem Sending the Command to the Program

  1. คลิก Ok อีกครั้ง

นี่ควรแก้ปัญหาได้ หากแก้ไขแล้ว แสดงว่า add-in คือสาเหตุ ตอนนี้ทำตามขั้นตอนข้างต้นและเปิดใช้งาน add-ins ทีละตัว เพื่อระบุว่าตัวไหนเป็นรากแก้

วิธีที่ 6: ปิด Dell Data Protection Security Authentication Service

หมายเหตุ: วิธีนี้สำหรับผู้ใช้ Dell หากไม่ได้ใช้คอมพิวเตอร์ Dell ข้ามวิธีนี้

หากใช้เครื่อง Dell ปัญหาอาจเกี่ยวข้องกับ Dell Data Protection Security Authentication Service ซึ่งเป็น service ที่ติดตั้งผ่าน Dell's Digital Delivery service วัตถุประสงค์หลักคือให้ security solution และ authentication support สาเหตุที่เกี่ยวข้องกับ service นี้ไม่ทราบ แต่มีผู้ใช้ Dell จำนวนมากแก้ปัญหาได้โดยปิดหรือถอนติดตั้ง service นี้

ขั้นตอนปิด Dell Data Protection Security Authentication Service:

  1. กด Windows key และกด R
  2. พิมพ์ services.msc กด Enter

แก้ไข: Problem Sending the Command to the Program

  1. หาและดับเบิลคลิก Dell Data Protection Security Authentication Service

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Disabled จากเมนูดรอปดาวน์
  2. ตรวจสอบว่า service status เป็น stopped หากไม่ใช่ คลิกปุ่ม Stop ในส่วน Service Status
  3. คลิก Apply แล้วเลือก Ok

เช็คว่าปัญหาแก้ไขหรือยัง หากหาย แสดงว่า service นี้คือสาเหตุ สามารถปิดทิ้งได้โดยไม่มีปัญหาใหญ่ สามารถถอนติดตั้งจาก Programs and Features หากไม่อยากมี service นี้ หากปัญหายังคงอยู่ เปิด service กลับได้โดยทำขั้นตอน 1-6 แล้วเลือก Automatic ในขั้นตอน 4

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

ปัญหาอาจมาจาก video card ดังนั้นการปิดตัวเลือกนี้แก้ปัญหาได้ นี่เป็น workaround มากกว่า solution จึงควรเช็คอัปเดตล่าสุดจาก video card manufacturer อยู่เสมอ เพราะมีโอกาสสูงที่จะปล่อยอัปเดตสำหรับปัญหานี้

  1. เปิด Excel
  2. คลิก File

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Options

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Advanced จากแถบซ้าย
  2. ติ๊ก ตัวเลือก Disable Hardware Acceleration ตัวเลือกนี้ควรอยู่ในส่วน Display
  3. คลิก Ok

แก้ไข: Problem Sending the Command to the Program

เมื่อเสร็จ ควรแก้ปัญหาได้ เก็บตัวเลือกนี้ไว้จนกว่าจะเห็นอัปเดตใหม่จาก video card manufacturer ควรปิดตัวเลือกนี้หลังอัปเดต video card หากวิธีนี้ไม่แก้ปัญหา ไม่ต้องเก็บตัวเลือกนี้ คลิกขั้นตอนข้างต้นและ Uncheck Disable Hardware Acceleration ในขั้นตอน 5

วิธีที่ 8: รีเซ็ต Default Programs และ File Associations

บางครั้ง ปัญหาอาจมาจาก Excel ไม่ใช่ default program สำหรับรัน .xlsx files การตั้ง Excel เป็น default program และ reset file associations แก้ปัญหาได้

ทำตามขั้นตอนด้านล่างเพื่อ reset file associations

  1. กด Windows key และกด R
  2. พิมพ์ control panel กด Enter

แก้ไข: Problem Sending the Command to the Program

  1. พิมพ์ Default programs ใน search bar มุมขวาบน
  2. เลือก Default Programs option

แก้ไข: Problem Sending the Command to the Program

  1. เลือก Set your default programs

แก้ไข: Problem Sending the Command to the Program

  1. รอสักครู่ให้รายการโหลด
  2. หาและเลือก Excel
  3. คลิก Choose defaults for this program

แก้ไข: Problem Sending the Command to the Program

  1. ติ๊กตัวเลือก Select All
  2. คลิก Save

แก้ไข: Problem Sending the Command to the Program

วิธีที่ 9: ถอนติดตั้ง Additional Office Viewer

ข้อความผิดพลาดนี้อาจเกิดขึ้น หากติดตั้ง Office Viewer พร้อมกับ Microsoft Office หากเป็นเช่นนั้น ให้ถอนติดตั้งและทดสอบใหม่