I am using Solidworks API in VBA and want to ask a few question regarding User defined form
1. How to display a variable value as label caption is a form?
2. How to call a form using a command button in another form?
3. How to pass a variable from one form to another form?
1. How to display a variable value as label caption is a form?
Set the variable in the UserForm1_Initialize event Sub
2. How to call a form using a command button in another form?
In the CommandButton_Click event sub UserForm2.Show
3. How to pass a variable from one form to another form?
Add a Module to the macro and declare your global variables there. These global variables can be used anywhere in the macro.