Inventor VB Duplicate Option Explicit

Inventor VB Duplicate Option Explicit

Nsteel
Contributor Contributor
928 Views
1 Reply
Message 1 of 2

Inventor VB Duplicate Option Explicit

Nsteel
Contributor
Contributor

I'm in the process of creating a VB form for an inventor assembly.

The problem I am having is that when I open the file inventor is duplicating the line "option Explicit" to the ThisDocument code, so when it is opened it all fails. inventor is doing this whether I run the form or not, If I delete both it will add one instance in, which is fine and everything will still work, but if I close and re-open the document a second time I get the same error because it as added a second.

 

Can anyone offer some advice on this as I'm loosing it with inventor trying to fix it myself,

 

Ta,

 

0 Likes
Accepted solutions (1)
929 Views
1 Reply
Reply (1)
Message 2 of 2

rossano_praderi
Collaborator
Collaborator
Accepted solution

Hi, within your VBA editor you have to deselect the option "Require Variable Declaration".

 

Bregs

Rossano Praderi

 

 



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------
0 Likes