Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running a VBA macro with a password from the AddIn (VB.NET)?

1 REPLY 1
Reply
Message 1 of 2
filat
608 Views, 1 Reply

Running a VBA macro with a password from the AddIn (VB.NET)?

Macros(VBA) can be run from the AddIn(VB.NET) using the code:

 

Dim invVBA As InventorVBAMember
invVBA = m_inventorApplication.VBAProjects.Item(1).InventorVBAComponents.Item("Module№").InventorVBAMembers("Sub№")
invVBA.Execute()

 

 But I encountered such a problem that if the macro password is set, the program Adin does not work until manually until shalt bring the password in the VBA ...
Is there a way to separate these processes, so that the macro with the password can be run from the AddIn?

1 REPLY 1
Message 2 of 2
Vladimir.Ananyev
in reply to: filat

This problem is not Inventor API related.
Hope the following links could clarify the situation a little bit:
http://stackoverflow.com/questions/16174469/unprotect-vbproject-from-vb-code
http://www.pcreview.co.uk/threads/programmatically-open-locked-vbaproject.3371133/
http://stackoverflow.com/questions/24804329/open-password-protected-vba-project-programmatically


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report