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

Connecting to Excel Code doesn't work in Rhino 8

$
0
0

Hi,

I’ve tried to open an excel file using code that worked in previous versions of Rhino and it no longer works. I’m not sure if there is something about the block of code that needs to be updated or the fact that I have Excel 365 on my machine.

I get the following error:
Message: Could not add reference to assembly Microsoft.Office.Interop.Excel

Traceback:
line 2, in , “C:\Users\ebunn\AppData\Local\Temp\TempScript.py”

Looking for any advise on trouble shooting this.

import clr
clr.AddReference("Microsoft.Office.Interop.Excel")
import Microsoft.Office.Interop.Excel as Excel
excel = Excel.ApplicationClass()
excel.Visible = True

Thanks,

Eric

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles