Computer >> Hướng Dẫn Máy Tính >  >> Xử Lý Sự Cố >> Lỗi Windows

Sửa lỗi: "There was a problem sending a command to the program" (Excel/Word/Access)

Windows đầy bất ngờ khi gặp thông báo lỗi bất chợt như: "There was a problem sending a command to the program". Thường cho thấy cửa sổ không kết nối được với ứng dụng MS Office (Excel, Word, Access...) khi gửi lệnh DDE (Dynamic Data Exchange). Kết quả: không chạy được ứng dụng Office.

Đôi khi lỗi tự hết: popup chỉ hiện một lần, lần 2-3 chạy được. NHƯNG không có nghĩa là bỏ qua, cần sửa thủ công vì có thể tái diễn.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Nếu có Microsoft Compatibility Viewer, gỡ nó và thử mở file Excel. Nếu không được, sửa chữa Microsoft Office (từ Programs and Features) và kiểm tra.

Sửa file hệ thống hỏng

Tải và chạy Restoro quét file hỏng tại đây, nếu tìm thấy file hỏng/thiếu, sửa bằng Restoro kết hợp các phương pháp dưới.

Phương pháp 1: Tắt "Run program as administrator"

  1. Chuột phải shortcut ứng dụng báo lỗi → Properties → tab Compatibility. Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  2. Bỏ tích Run program as administrator nếu đang bật. Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Phương pháp 2: Kiểm tra tùy chọn DDE (Excel)

  1. Mở MS Office EXCEL → mở hộp Excel Options từ OFFICE Menu (click icon Office góc trên trái) → Advanced.
  2. Tìm tùy chọn Ignore other applications that use Dynamic Data Exchange (DDE) dưới General Options → bỏ tích/vô hiệu hóa. Restart ứng dụng Office sau khi áp dụng. Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Nếu tùy chọn này đã bị bỏ tích, hãy bật nó lên (tick vào ô), restart ứng dụng, rồi lại bỏ tích và restart lại.

Phương pháp 3: Thay đổi cài đặt Excel

Một số cài đặt có thể thay đổi để kiểm tra. Không cần đổi tất cả. Đổi từng cái một và kiểm tra.

  1. Mở Microsoft Excel
  2. Click File Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Chọn Options Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  4. Chọn Advanced khung trái
  5. Bỏ tích Ignore other applications that use Dynamic Data Exchange (DDE) (nằm mục General)
  6. Click OK kiểm tra. Nếu vẫn lỗi, tiếp tục.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

  1. Chọn Trust Center
  2. Click Trust Center Settings Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Chọn External Content
  4. Bật cả Security settings for Data Connections và Security settings for Workbook Links
  5. Click OK kiểm tra. Nếu chưa, tiếp.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

  1. Chọn Trust Center
  2. Click Trust Center Settings
  3. Chọn Macro Settings
  4. Chọn Enable all macros (not recommended; potentially dangerous code can run)
  5. Tích Trust access to the VBA project object model
  6. Click OK kiểm tra. Nếu chưa, tiếp.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

  1. Chọn Trust Center
  2. Click Trust Center Settings
  3. Chọn ActiveX Settings
  4. Chọn Enable all controls without restrictions and without prompting. (not recommended; potentially dangerous code can run)
  5. Click OK kiểm tra. Nếu chưa, tiếp.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

  1. Chọn Trust Center
  2. Click Trust Center Settings
  3. Chọn Privacy Options
  4. Bỏ tích Check Microsoft Office Documents that are from or link to suspicious websites.
  5. Click OK kiểm tra.

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Phương pháp 4: Sửa Registry

Nếu phương pháp 1 không hiệu quả, vẫn có cách sửa Registry đã giúp nhiều người.

Lưu ý: Sai sót Registry gây sự cố nghiêm trọng. Nên backup Registry trước. Xem hướng dẫn backup/restore Registry.

  1. Mở Run (Windows + R)
  2. Gõ regedit → Enter/OK. Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Điều hướng đến: HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open. Nếu không biết cách, làm theo:
    1. Double-click HKEY_CLASSES_ROOT khung trái
    2. Double-click Excel.Sheet.8
    3. Double-click shell
    4. Double-click Open
    Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access) Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  4. Chuột phải khóa/thư mục ddeexec (nằm dưới Open) → Delete. Hoặc chỉ đổi tên: chuột phải → Rename, đặt tên tùy ý. Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  5. Chọn khóa command (dưới Open) click trái 1 lần.
  6. Double-click chuỗi Default khung phải.
  7. Thay phần /e hoặc /dde trong giá trị bằng "%1". Lưu ý: Giữ cả dấu ngoặc kép.
  8. Giá trị Default string nên giống: "C:\Program Files (x86)\Microsoft Office\Office15\EXCEL.EXE" "%1"
  9. Click OK Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  1. Double-click chuỗi command khung phải.
  2. Thay phần /e hoặc /dde bằng "%1". (Giữ dấu ngoặc kép).
  3. Giá trị command string nên giống: yh1BV5!!!!4!!!!MKKSkEXCELFiles>Of1RD?I9b9j[2hL]KhO& "%1"
  4. Click OK Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

  1. Cuộn lên một chút, double-click Excel.Sheet.12.
  2. Lặp lại bước 4-13 cho Excel.Sheet.12.

Xong, kiểm tra lỗi đã hết chưa.

Phương pháp 5: Kiểm tra và tắt Add-ins Excel

Add-ins Excel đôi khi gây lỗi. Nếu vừa cài add-in hoặc quanh thời điểm lỗi bắt đầu, đó là dấu hiệu. Dù không nhớ, tắt/gỡ add-ins cũng đáng thử.

  1. Mở Excel
  2. Click File Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Chọn Options Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  4. Chọn Add-ins khung trái
  5. Chọn Add-in từ danh sách Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  6. Hộp Manage, click Excel Add-ins → Go…
  7. Hộp Add-Ins available, bỏ tích add-in muốn tắt. Khuyên tắt TẤT CẢ để test xem add-in có phải nguyên nhân không.
  8. Xong click OK Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  9. Click OK lần nữa.

Nếu lỗi hết, xác định add-in gây ra. Bật lại từng cái một theo các bước trên để tìm thủ phạm.

Phương pháp 6: Tắt Dell Data Protection Security Authentication Service

Lưu ý: Chỉ dành cho máy Dell. Không dùng Dell thì bỏ qua.

Nếu dùng máy Dell, lỗi có thể do dịch vụ Dell Data Protection Security Authentication Service. Dịch vụ này cài qua Digital Delivery của Dell, mục đích cung cấp giải pháp bảo mật và xác thực. Nguyên nhân không rõ nhưng nhiều người Dell khắc phục bằng cách tắt/gỡ dịch vụ này.

  1. Giữ Windows + R
  2. Gõ services.msc → Enter Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Tìm và double-click Dell Data Protection Security Authentication Service Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  4. Chọn Disabled từ menu thả xuống
  5. Đảm bảo Service status: Stopped. Nếu không, click Stop phần Service Status
  6. Click Apply → OK

Kiểm tra lỗi. Nếu hết, bạn biết nguyên nhân. Có thể giữ tắt dịch vụ này không gặp vấn đề lớn. Hoặc gỡ qua Programs and Features nếu thực sự không muốn. Nếu vẫn lỗi, bật lại dịch vụ: làm lại bước 1-6 nhưng bước 4 chọn Automatic.

Phương pháp 7: Tắt Hardware Acceleration

Vấn đề có thể do card video. Tắt tùy chọn này khắc phục. Đây là workaround chứ không phải giải pháp gốc. Theo dõi cập nhật mới từ hãng card video vì khả năng cao họ sẽ phát hành bản vá.

  1. Mở Excel
  2. Click File Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Chọn Options Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  4. Chọn Advanced khung trái
  5. Tích Disable Hardware Acceleration (dưới mục Display)
  6. Click OK Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Xong, lỗi nên hết. Giữ tùy chọn này cho đến khi thấy bản cập nhật card video mới. Sau khi cập nhật card video, bỏ tích Disable Hardware Acceleration. Nếu cách này không khắc phục, không cần giữ tùy chọn này. Làm theo bước trên và bỏ tích ở bước 5.

Phương pháp 8: Reset Default Programs và File Associations

Đôi khi do Excel không phải chương trình mặc định mở file .xlsx. Đặt Excel làm mặc định và reset file association khắc phục.

Các bước reset file association:

  1. Giữ Windows + R
  2. Gõ control panel → Enter Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  3. Gõ Default programs thanh tìm kiếm góc trên phải
  4. Chọn Default Programs Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  5. Chọn Set your default programs Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  6. Đợi danh sách load xong
  7. Tìm và chọn Excel
  8. Click Choose defaults for this program Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)
  9. Tích Select All
  10. Click Save Sửa lỗi:  There was a problem sending a command to the program  (Excel/Word/Access)

Phương pháp 9: Gỡ Office Viewer thêm

Lỗi cũng xuất hiện nếu cài Office Viewer song song với Microsoft Office. Nếu là trường hợp này, gỡ Office Viewer và test lại.