How to call a Excel form to inventor.

How to call a Excel form to inventor.

jeeva.scientist
Enthusiast Enthusiast
738 Views
3 Replies
Message 1 of 4

How to call a Excel form to inventor.

jeeva.scientist
Enthusiast
Enthusiast

Hello everyone,

  1. I have a part model.
  2. Dimensions in the part model are driven my excel link.
  3. I have a form in excel, to change the values.
  4. I also have a form in the Part model.
  5. The excel file is located in the same folder as the part model.

Question:

  1. Is it possible to call the excel form from the part model form?
0 Likes
Accepted solutions (1)
739 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor

With VBA;Vb.net; Ilogic or by referencing the table in the part directly?

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 4

HideoYamada
Advisor
Advisor
Accepted solution

Hello,

 

You can call excel VBA macro from Inventor VBA macro.

 

Inventor VBA Code :

Sub test()
    Dim xlApp As Excel.Application
    
    Set xlApp = GetObject(, "Excel.Application")

' Here "ExcelSub" is the name of the Macro. xlApp.Run "ExcelSub" End Sub

You must add Reference to Excel Object Library in Inventor before use this code.

Capture.png

 

Excel VBA Code :

Public Sub ExcelSub()
    ' Get application focus
    AppActivate Application.Caption
    ' Show dialog
    UserForm1.Show
End Sub

The workbook must have been opened.

 

Let's try !!

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
Message 4 of 4

jeeva.scientist
Enthusiast
Enthusiast

Thanks for your Support 👍 

Working Proof 👇

post-processed (1).gif