ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CEChristian Ekström08/07/2024

I have an issue where I can run a macro from the Solidworks VBA window, but when trying to run it via "Run macro" in SW I get this error message: 

The file is saved as an .swp from Solidworks VBA, and the main() is at the bottom part of the module so I can't understand why it won't work. The code is split into one userform and one module, which is found beneath.

Any help is greatly appreciated!

UserFor