Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub CommandButton1_Click()
Dim MyUserForm As UserForm1
If MyUserForm Is Nothing Then
Set MyUserForm = UserForm1
End If
Unload MyUserForm
End Sub
Private Sub CommandButton1_Click()
Dim UF As UserForm1, myUF As UserForm1, strFormName As String
strFormName = "UserForm1"
For Each UF In VBA.UserForms
If UF.Caption = strFormName Then
Set myUF = UF
Exit For
End If
Next UF
If Not myUF Is Nothing Then Unload myUF
End Sub