Message 1 of 4

Not applicable
09-13-2017
12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there,
I'm trying to launch an inventor Macro via an Excel Command Button.
I've managed to open the inveotor document in which all the macros are. Now all left to do is to run one macro.
I tried for hours and, sadly, I'm not able to get this to work.
Here is what I have:
Public Sub CommandButton1_Click() Dim InvFilename As String CommandButton1.Caption = "hello there." InvFilename = "my_path" InvFilename = "C:\Program Files\Autodesk\Inventor 2017\Bin\inventor.exe """ & InvFilename & """" Call Shell(InvFilename, 1) Dim inv As Object Set inv = CreateObject("Inventor.Application") inv.Run "Module1.test" '<-----------------------ERROR 438 End Sub
This is the Error Message I get: Object doesn't support this property or method. 438
Can someone please help me?
-Jake
Solved! Go to Solution.