Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

VBA Code to open form on top of 64bit SW

Status
Not open for further replies.

DesignerGuy16

Mechanical
Jun 18, 2008
303
Use this code with existing or new macro's to force a form to open on top and centered on your SolidWorks instance. Just rename UserForm to your existing Form name. You will have to make an instance/sub-routine for every UserForm that may be opened. Otherwise it may have issues pulling/saving information. It's pretty convoluted, but allows normal use for SolidWorks VBA macros in a 64bit operating system and program. There really isn't a better way to show VBA forms in 64bit SolidWorks without recoding everything to C++ and making your macro's an add-in.

See the attached link or below link to download.

You're welcome to all the people who want to keep using their existing VBA macro's in 64bit SolidWorks without having to alt-tab to the form everytime you use your macro. =)

James Spisich
Design Engineer, CSWP
 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor