Inventor VBA system error &H8007003B

Inventor VBA system error &H8007003B

r.paauwT7BR9
Participant Participant
1,279 Views
3 Replies
Message 1 of 4

Inventor VBA system error &H8007003B

r.paauwT7BR9
Participant
Participant

Hello,

 

In Inventor I have a macro that uses a UserForm. The userform has buttons to select the option to perform stepfile export on a single or on multiple open .ipt or .iam. Most of the times the macro runs without problems. But sometimes it has a Run-time error "7": could not find specified object. When pressing debug, the code

Set oUserform = New oUserform is marked.

 

Code sample:

 

dim oUserform as oUserform

set oUserform = New oUserform

 

 

When trying to open oUserform the System Error &H8007003B (-2147024837) appears. 

 

Can someone help me understand this problem?

0 Likes
Accepted solutions (1)
1,280 Views
3 Replies
Replies (3)
Message 2 of 4

yan.gauthier
Advocate
Advocate
Accepted solution

Simply call your form using the method myform.show

 

If your form name is StepExportForm, then in your code, you would call StepExportForm.show

0 Likes
Message 3 of 4

r.paauwT7BR9
Participant
Participant

 

Sorry for the late reply.

 

Your solution means I do not have to declare the form first? 

0 Likes
Message 4 of 4

yan.gauthier
Advocate
Advocate

You should have created your form in the VBA editor. You don't need to declare it. simple call the show method

 

0 Likes