I’m trying to get an old script that uses Excel working on my apprentices’ machine, with a fresh Office 365 install, and (to simplify) on the code below it fails to add a reference to “Office” or “Microsoft.Office.Interop.Excel”, they don’t exist to it. The DLLs do seem to exist.
So what do I need to check the status of or install to get the COM automation working?
import clr
clr.AddReference(“Office”)
clr.AddReference(“Microsoft.Office.Interop.Excel”)
5 posts - 2 participants