Hello Every one I have Created
within my Userform9 Code
I have created the Following Command Button
The button is created however I need to run code when "ENTER" button is CLICK
I have tried
What will I need to add to make it work. any help is greatly appreciated.
within my Userform9 Code
VBA Code:
Private Sub userform_initialize()
I have created the Following Command Button
VBA Code:
Set CmdBtn = UserForm9.Controls.Add("Forms.CommandButton.1")
With CmdBtn
.Caption = "ENTER"
.Name = "CmdBtn" & 1
.Left = 350
.Top = 33
.Width = 70
End With
The button is created however I need to run code when "ENTER" button is CLICK
I have tried
VBA Code:
Private Sub CommandButton1_Click()
MsgBox "You Clicked the Command button", vbOKOnly
End Sub
What will I need to add to make it work. any help is greatly appreciated.