I need to make a program that will tell me if the user entered a vaild email, phone number, or social security number. This is what I have so far.
Sub Main()
Dim num As String
num = InputBox("Please enter your number!!!", "What was the number you were given?")
MsgBox(num)
If num Like "###-###-####" Then
MsgBox(num & " is a phone number")
ElseIf num Like "###-##-####" Then
MsgBox(num & " is a social security number")
ElseIf num Like "#####@###.###" Then
MsgBox(num & " is a email")
Else
MsgBox(num & " is not a valid phone number, social security number, or email address.")
End If