April 03, 202300:03:51

Excel Vba Create Close Button

'''''Lesson 56 Excel '''


Private Sub CommandButton1_Click()
Unload Me
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = 0 Then Cancel = True
End Sub