unable to cast COM object of type ‘microsoft.Office.Interop.Excel.ApplicationClass’ to ‘microsoft.Office.Interop.Excel.Application'”

Microsoft Office 365

I was running Microsoft Office 365 with Windows 10 and tried the mentioned solutions to remove the registry key without success.

I went to the control panel in an attempt to repair the Office 365 suite.
enter image description here

  1. Right Click on Start Menu
  2. Click Apps and Features
  3. Search Microsoft 365
  4. Click Microsoft 365
  5. Click Modify

I selected the quick repair
enter image description here

Tried my program again and everything worked!

Leave a Comment