Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4152

Accessing Excel from 2.7 Python

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4152

Trending Articles