Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong module is displayed when opening the program

Status
Not open for further replies.

JamesRice

Programmer
Joined
Jul 28, 2008
Messages
1
Location
US
When I loaded a VBA program in AutoCAD and hit alt-F11 to view the VBAIDE, the userform was shown and I could just hit the run button to run the program. I have since added a class module to the program. Since adding the class module, when I load the program and enter the VBAIDE, the only thing visible is the class module code. I have to view the Project Explorer, select the Forms folder and select the form before I can run the program. How can I get the user form to be "active" so that when I first open the program it is the first thing I see and can run it without going through all of the other steps?
 
I do not know AutoCAD, but the typical behaviour of VBA IDE is that it saves window states with the file. So you could try to close class module window, open userform window and save the file.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top