Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
AMArthur McRae24/05/2016
Working on a Macro that has several Userforms.
I can find how to have an auto closing Userform for excel but it isn't working for soldiworks.
I'm finding code like this:
Sub show_UserForm()
Application.OnTime Now + TimeValue("00:00:15"), "close_UserForm"
UserForm1.Show
End Sub
Sub close_UserForm()
Unload UserForm1
End Sub
Or:
Private Sub UserForm_Activate()
Application.Wait = (Now + TimeValue("0:00:30"))
Sheet1.Cells(1, 1) = "Yes"
Unload Me
End Sub
But I can't get it to run with solidworks Macros