Hi;
I made this function to check entries into cells, and it works for what was needed if I manually add it in the spreadsheet.
Is there a way to change this to a sub routine to check all cells in Column A that are not Null, and place the return values in Column T of the same row?
I am using Excel 2010
I made this function to check entries into cells, and it works for what was needed if I manually add it in the spreadsheet.
Is there a way to change this to a sub routine to check all cells in Column A that are not Null, and place the return values in Column T of the same row?
Code:
Function ValidEntry(strEntry As String) As String
If strEntry Like "[0-9][0-9][0-9][0-9][0-9][0-9][0-9]" Then
ValidEntry = "Pass"
ElseIf strEntry Like "[a-z][a-z][a-z][a-z][a-z][a-z][a-z]" Then
ValidEntry = "Fail"
Else
ValidEntry = "N/A"
End If
End Function
I am using Excel 2010