According to the teacher this is how you dou message boxes why doesn't it work?
Private Sub Command1_Click()
msg.box = "If you havent already clicked the white box below click it!"
End Sub
Printable View
According to the teacher this is how you dou message boxes why doesn't it work?
Private Sub Command1_Click()
msg.box = "If you havent already clicked the white box below click it!"
End Sub
That is not the correct way to do message boxes.
VB Code:
Private Sub Command1_Click() MsgBox "This is your text", vbInformation+vbOkOnly, "This is the title" End Sub
msgbox
(instead of msg.box)
will work