J
jr
I'm doing VBA in Excel 2004 on a form. This code gives me a 424
undefined object. I guess that means it wants me to define the
textbox control?
Private Sub CommandButton1_Click()
Dim players As Variant
players = Array("Dan", "Fred", "Bart", "Carlos", "Ty", "Juan", "Jay",
"Sam", "Pedro")
Dim i As Integer
i = CInt(texbox1.Text)
MsgBox (players(i) & " is on first base")
End Sub
thanks,
undefined object. I guess that means it wants me to define the
textbox control?
Private Sub CommandButton1_Click()
Dim players As Variant
players = Array("Dan", "Fred", "Bart", "Carlos", "Ty", "Juan", "Jay",
"Sam", "Pedro")
Dim i As Integer
i = CInt(texbox1.Text)
MsgBox (players(i) & " is on first base")
End Sub
thanks,