Function BlnIsValidIC (ByVal strInput)
If Len(strInput) <> 9 Then
BlnIsValidIC = False
Else
If IsNumeric(Right(strInput, 1)) = True Or IsNumeric(Left(strInput, 1)) = True Or IsNumeric(Mid(strInput,2,7))
end if
End Function
-----------------------------------------------------------
This the coding which i wrote, but the Left(), right() and mid() function would return error. VBA's package is missing..
Pls advise me?? Thank
If Len(strInput) <> 9 Then
BlnIsValidIC = False
Else
If IsNumeric(Right(strInput, 1)) = True Or IsNumeric(Left(strInput, 1)) = True Or IsNumeric(Mid(strInput,2,7))
end if
End Function
-----------------------------------------------------------
This the coding which i wrote, but the Left(), right() and mid() function would return error. VBA's package is missing..
Pls advise me?? Thank