How to Fix Excel ‘Cannot Insert Object’ Error

Designing interactive dashboards, customized order forms, or financial forecasting models in Microsoft Excel frequently involves embedding interactive form controls, ActiveX elements (such as command buttons, checkboxes, and combo boxes), or linked objects. However, clicking to place a control or insert an embedded object only to be halted by a blunt, unhelpful dialogue box stating: “Cannot insert object” brings workbook development to an immediate standstill. In Microsoft Excel’s component architecture, ActiveX controls and embedded OLE (Object Linking and Embedding) items rely on shared Microsoft Forms typelib libraries (FM20.DLL) and temporary compiled binary cache files with the .exd extension. When Windows security patches update ActiveX definitions without purging legacy binary caches, when worksheet protection restricts shape placement, or when Trust Center macro security blocks ActiveX initialisation, Excel refuses to instantiate the object canvas. This guide explains why the ‘Cannot insert object’ error occurs and provides proven solutions to restore full object insertion in Excel.

What Causes the ‘Cannot Insert Object’ Error in Excel?

Because object embedding intersects file security, COM registration, and worksheet permissions, several factors trigger this blockage:

  • Corrupted MSForms.exd Binary Cache Files: The most notorious cause stems from Windows security updates modifying Office form libraries. When old .exd cache files mismatch newly patched DLLs, Excel terminates object creation.
  • Worksheet or Workbook Structure Protection: An active worksheet protection rule that has the Edit objects permission unchecked, prohibiting users from modifying graphical layers.
  • Disabled ActiveX Settings in Trust Center: Office Trust Center security policies configured to “Disable all controls without notification”.
  • Workbook Object Placement Display Options: Excel’s global display options configured to hide all objects, preventing new shapes or controls from rendering.
  • 32-Bit vs 64-Bit Office ActiveX Incompatibility: Attempting to insert a legacy 32-bit third-party OCX control into a modern 64-bit installation of Microsoft 365.

Method 1: Delete Corrupted MSForms.exd Cache Files

Purging cached binary type libraries forces Excel to recompile fresh, uncorrupted object templates upon launch.

  1. Close all Microsoft Office applications completely (Excel, Word, Outlook, PowerPoint).
  2. Press Win + R to open the Run dialogue box.
  3. Paste the following path and press Enter:
    %temp%\vbe
  4. If the vbe folder exists, delete any file named MSForms.exd inside it.
  5. Next, press Win + R again and paste:
    %temp%\excel8.0
  6. Delete any .exd files found in this folder.
  7. Finally, open File Explorer, search your entire %localappdata%\Temp directory for *.exd, and delete all matching files.
  8. Relaunch Excel; opening the workbook will automatically regenerate fresh .exd caches, permanently clearing the insertion block.

Method 2: Check and Unlock Worksheet Object Permissions

Verify that active worksheet protection is not suppressing shape and object creation.

  1. Navigate to the Review tab on the Excel ribbon.
  2. Inspect the Protect group: if the button displays Unprotect Sheet, the worksheet is locked.
  3. Click Unprotect Sheet (enter the password if prompted).
  4. If you wish to re-enable protection while allowing controls: click Protect Sheet, and in the list of permissions, ensure you scroll down and tick the checkbox for Edit objects.
  5. Click OK. Users will now be able to insert and manipulate controls whilst keeping formula cells locked.

Method 3: Configure ActiveX Settings in Trust Center

Ensure that Excel’s security sandbox permits the initialisation of ActiveX and OLE controls.

  1. Click on File in the top-left corner and select Options.
  2. Click on Trust Center in the left pane, then click the Trust Center Settings… button.
  3. Select ActiveX Settings from the left sidebar.
  4. Ensure that “Disable all controls without notification” is not selected.
  5. Select Prompt me before enabling all controls with minimal restrictions (or Enable all controls without restrictions if developing within a trusted enterprise intranet).
  6. Ensure that Safe mode is checked to prevent malicious control execution.
  7. Click OK and OK to save changes.

Method 4: Verify Object Display Options in Excel Settings

If Excel is instructed to hide all objects, inserting new shapes or form controls will immediately fail.

  1. Go to File > Options > Advanced.
  2. Scroll down to the section titled Display options for this workbook.
  3. Locate the setting: For objects, show:.
  4. Ensure that the radio button for All is selected (if set to Nothing (hide objects), all controls are suppressed).
  5. Alternatively, press Ctrl + 6 on your keyboard while in the worksheet to toggle object visibility back on.

Method 5: Re-register the Microsoft Forms DLL (FM20.DLL)

If the shared Forms library was unregistered during an Office update, re-registering it restores COM bindings.

  1. Press the Windows Start key, type cmd, right-click Command Prompt, and select Run as administrator.
  2. For 64-bit Windows running 32-bit Office, execute:
    regsvr32 C:\Windows\SysWOW64\FM20.DLL
  3. For 64-bit Windows running 64-bit Office, execute:
    regsvr32 C:\Windows\System32\FM20.DLL
  4. You will receive a confirmation message stating: “DllRegisterServer in FM20.DLL succeeded.”
  5. Restart Excel and test inserting your control.

Excel ‘Cannot Insert Object’ Diagnostic Matrix

Observed Trigger Primary Root Cause Recommended Solution
Error occurred after recent Windows or Office Update Stale MSForms.exd cache mismatching patched DLL Delete all *.exd files in %temp%\vbe and %temp%\excel8.0
Cannot insert buttons on specific shared sheet Worksheet protection prohibiting object modifications Review > Unprotect Sheet or tick ‘Edit objects’ permission
ActiveX controls greyed out or fail silently Trust Center blocking ActiveX controls Trust Center > ActiveX Settings > Set to Prompt me
Controls vanish or shortcut Ctrl+6 pressed Display options set to ‘Nothing (hide objects)’ Advanced Options > Display options > Set to ‘All’

Purging stale MSForms.exd cache files, enabling object permissions on protected sheets, and configuring ActiveX controls in the Trust Center permanently resolves the ‘Cannot insert object’ error in Microsoft Excel.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.