Error: Unable to cast COM object of type ‘System.__ComObject’ to interface type

Jainsweety’s solution worked for me too.

Open the excel application , click ;

  1. File
  2. Options
  3. Add-ins

Click the drop-down options next to “manage:” and select “COM Add-ins”, then click “GO”

  1. Untick/deselect “UiPath.Intergration.ExcelAddin”, click “OK”, close excel and run the bot again.
13 Likes