Prog
Prog
' If not, write the number to the first cell in the first sheet.
Worksheets(1).Range("a1").Value = Response
End If
End Sub
In the example below, a series of If statements is used to check the entry. The InputBox is inside
a While loop to allow it to be re-shown if an error occurs. If all the conditions are true, the
entered number is written to cell A1 on the first worksheet and the loop is ended.
Sub Using_InputBox_Function()
Dim Show_Box As Boolean
Dim Response As Variant