Sub InputBoxTest()
Dim GetInput As Variant
Dim Prompt As String, Title As String
Prompt = "Enter Your Name"
Title = "Enter Name"
Do
GetInput = InputBox(Prompt, Title)
'cancel pressed
If StrPtr(GetInput) = 0 Then Exit Sub
'exit when value entered
Loop Until Len(GetInput) > 0
MsgBox GetInput
End Sub