Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I' trying to set a cell so the user can only input a 11 digit number that can start with a zero and contain no spaces.
Function ChkValidity(SerNumb) As Boolean
'
Dim I As Long, J As Long, Digit As String
'
J = Len(SerNumb)
If J <> 11 Then
ChkValidity = False
Exit Function
End If
'
For I = 1 To J
Digit = Mid(SerNumb, I, 1)
If Digit < "0" Or Digit > "9" Then
ChkValidity = False
Exit Function
End If
Next I
'
ChkValidity = True
'
End Function