AnsweredAssumed Answered

Userform auto close

Question asked by Arthur McRae on May 24, 2016
Latest reply on May 30, 2016 by Arthur McRae

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"


End Sub


Sub close_UserForm()

Unload UserForm1

End Sub


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