Hi All
I have two userforms, Userform1 and UserForm2, and I have commandButton1 and commandbutton 2 to open up these two userforms in the worksheet.
I have two userforms, Userform1 and UserForm2, and I have commandButton1 and commandbutton 2 to open up these two userforms in the worksheet.
VBA Code:
[FONT=Times New Roman][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]
[FONT=Calibri][SIZE=3][COLOR=#000000]Private Sub CommandButton1_Click()
'UserForm1.Show vbModeless
UserForm1.Show
End Sub
Private Sub CommandButton2_Click()
UserForm2.Show
End Sub[/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/CO[/COLOR][/SIZE][/FONT]DE]
However, only the commandbutton1 works to open the userform1 but when I click the commandbutton2 the userform2 doesn't show and there is no error message. Please could anyone help me to resolve this? Thanks.