R
Ron Dahl
I am using the code posted below. The Commanbutton gets added just fine,
but when I click on it, it doesn't go to the cmdOK_click() procedure. It
just acts as if there is no procedure.
What am I missing?
Thanks in advance for any help.
Ron Dahl
With frmVersionInfo.Controls.Add("forms.commandbutton.1")
.Name = "cmdOK"
.Caption = "OK"
.Font.Size = 8
.Left = 196
.Width = 40
.Top = 318
.Height = 20
End With
Sub cmdOK_Click()
MsgBox "Hello!"
End Sub
but when I click on it, it doesn't go to the cmdOK_click() procedure. It
just acts as if there is no procedure.
What am I missing?
Thanks in advance for any help.
Ron Dahl
With frmVersionInfo.Controls.Add("forms.commandbutton.1")
.Name = "cmdOK"
.Caption = "OK"
.Font.Size = 8
.Left = 196
.Width = 40
.Top = 318
.Height = 20
End With
Sub cmdOK_Click()
MsgBox "Hello!"
End Sub