Your question, your audience. Choose who sees your identity—and your question—with question security.
Sub GetId()
Dim strMsg As String
Dim strTitle As String
redo:
strId = InputBox("Enter your ID", strTitle)
If Len(strId) = 0 Then
strTitle = "Error: You must enter an ID to proceed!"
GoTo redo
End If
End Sub
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
strID= InputBox(Prompt:="Enter your ID.", Title:="ID input", Default:="ID Please")
-RK