Unable to get the Open property of the Workbooks class

Unable to get the Open property of the Workbooks class

JoãoASilva
Advocate Advocate
817 Views
2 Replies
Message 1 of 3

Unable to get the Open property of the Workbooks class

JoãoASilva
Advocate
Advocate

Hello!

 

After solving my last issue in this post, I now get an error on one the computers here at work.

System.IO.File.Copy("Z:\Temp.Folders\JoaoASilva\Template.xlsm", oDestination,True) 'Create template copy
xlWorkbookTemp = xlApp.Workbooks.Open(oDestinationTemp) 'Open excel created by Inventor
xlWorkbook = xlApp.Workbooks.Open(oDestination) 'Open template copy

From the 3 machines I tested on, one of them gets this error:

Unable to get the Open property of the Workbooks class

The odd thing is that it opens the excel created by Inventor, but not the template copy.

They are both .xlsm files, and all the machines have the same version of Inventor, Excel and also the Trust Center definitions within Excel.

I also performed a Repair and Reset of office365 (like this post suggests) on the machine and the problem still occurs.

 

@johnsonshiue 

Allow me to tag you, has this seems like such a specific error.

 

Thanks in advance,

JoãoASilva

João Silva

Mechanical Engineer

 

0 Likes
818 Views
2 Replies
Replies (2)
Message 2 of 3

bradeneuropeArthur
Mentor
Mentor

Is the z drive a network drive. Use in that case servename not drive name!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 3

JoãoASilva
Advocate
Advocate

Thanks for the suggestion.

Although it didn't solve the issue, it does seem like a good practice.

 

Both excel files are on a network drive, and Inventor manages to open one and not the other.

Every terminal is configured in the same way (Network drives, Inventor and excel configs and versions).

And everything is up to date (Inventor 2023.3 Build 359).

João Silva

Mechanical Engineer

 

0 Likes