The input box will return nothing if Cancel is pressed. That is the only thing you can tell. So you can relate your code to see if cancel was pressed, such as.
Dim strResponse As String
strResponse = InputBox("What is your Name"
If strResponse = "" Then
MsgBox "You Must Enter Text", vbOkOnly
End If
or if you want to loop until the user actually does enter something rather than jsut pressing cancel try this.
Dim strResponse As String
Do Until strResponse <> ""
strResponse = InputBox("What is your Name"
If strResponse = "" Then
MsgBox "You Must Enter Text", vbOkOnly
End If
Loop Craig, mailto:sander@cogeco.ca
Si hoc legere scis, nimis eruditionis habes