How can I get my script below to only accept numeric input?
do
branchid = InputBox("Enter Branch Number (with leading 0s)")
if len(branchid)=3 and (branchid) then exit do
msgbox "Branch id needs to be 3 numbers with leading 0', please re-enter branchid"
loop
'Request Confirmation
ysno = MsgBox ("Please confirm details, branch=" & (branchid) & ", Select OK to Continue or Cancel tio Quit" ,vbOKCancel)
If ysno = 2 Then WScript.Quit
do
branchid = InputBox("Enter Branch Number (with leading 0s)")
if len(branchid)=3 and (branchid) then exit do
msgbox "Branch id needs to be 3 numbers with leading 0', please re-enter branchid"
loop
'Request Confirmation
ysno = MsgBox ("Please confirm details, branch=" & (branchid) & ", Select OK to Continue or Cancel tio Quit" ,vbOKCancel)
If ysno = 2 Then WScript.Quit