p45cal;505395 Wrote:
Do
StartingNum = Application.InputBox("Enter the 5 digit number", "Enter
Starting Number (5 digits only)", Type:=1)
If Len(StartingNum) < 5 Then MsgBox "5 digits please!"
'If StartingNum = "False" Then MsgBox "tee hee"
Loop Until Len(StartingNum) = 5 And StartingNum < "False"
Actually, this may fall over if the numbers can begin with a zero(s);
can they?
--
p45cal
*p45cal*
------------------------------------------------------------------------
p45cal's Profile:
http://www.thecodecage.com/forumz/member.php?userid=558
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=138953