This is driving me crazy. I have added a command button to a form dynamically. The question is, how do I add a click event for that button?????
Your help is greatly appreciated!
Code:
Set btnObj = Controls.Add("VB.CommandButton", "btnObj")
With btnObj
.Visible = True
.Caption = "New Button"
.Left = 240
.Top = 480
.Height = 240
End With