richiwatts
Technical User
How do I find all cells that have 3 capitals letters in them.
USD GBP EUR etc
USD GBP EUR etc
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.
Public Function Is3Caps(val As Variant) As Boolean
Dim i As Integer
Dim ASC_Val As Long
If Not IsNull(val) Then
If Len(val) = 3 Then
For i = 1 To 3
ASC_Val = Asc(Mid(val, i, i + 1))
If ASC_Val < 65 Or ASC_Val > 90 Then Exit Function
Next i
Is3Caps = True
End If
End If
End Function
WHERE strComp([FieldName],UCase([FieldName]),vbBinaryCompare)=0