vba Macro Button acting weird

vba Macro Button acting weird

sam
Advocate Advocate
478 Views
2 Replies
Message 1 of 3

vba Macro Button acting weird

sam
Advocate
Advocate

Hi guys, 

hoping everyone is safe. I had setup macro button with help of you generous people. Took guidance from these two posts. 

https://forums.autodesk.com/t5/inventor-customization/vba-forms-how-do-i-distribute/m-p/9600908#M112...

https://forums.autodesk.com/t5/inventor-customization/no-customicon-to-vba-macro-button/td-p/9061649

 

It was working properly for sometimes, since my work was in progress and as I added more pages to my form and more modules something really strange started to happen. So when I run macro from button first page (of multi-page) works just fine but second page of form is not working/loaded properly (it gives error). But if I run same from within VBA it works properly on all pages.

 

Any idea why this is happening? is it because when I call form through macro only code within that form is recognized but code that is accessed from other modules is not working?? really lost here. 

 

Best regards, 

sam

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

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Could you upload the code here?

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

Message 3 of 3

sam
Advocate
Advocate

@bradeneuropeArthur Thanks for your answer and sorry I couldn't reply sooner. 

 

Unfortunately I can't upload my file and code (against work policy) but I tried to figure it out and I think I (might) have found the reason. The code that was categorised in modules but was referenced buy code in form was causing the stated problem. so when I copied code back from these modules to form code everything seems to work fine now. thanks again for your reply though. 

 

 


@bradeneuropeArthur wrote:

Hi,

 

Could you upload the code here?


 

0 Likes