=EXACT(K2,PROPER(K2))
=$L2=FALSE
Sub test()
Dim cell As Range
For Each cell In ThisWorkbook.Sheets(1).Range("F2:F6") '<- need to supply your own range
If cell.Value <> UCase(cell.Value) Then
cell.Font.Color = RGB(255, 0, 0)
End If
Next
End Sub
Function CheckCase(txt As String) As String
Dim sp As Variant
sp = Split(txt)
For Each ele In sp
If AscW(Left(ele, 1)) < 65 Or AscW(Left(ele, 1)) > 90 Then
strng = ", " & ele & strng
End If
Next
CheckCase = Mid(strng, 3)
End Function
Thank you. I need to learn how to read.yky,
They are looking for Proper Case (first letter of each word capitalized only), not Ucase (which is all Upper Case).
One possible problem with your function... words within parentheses like "One Two (Three Four) Five".This function will extract words that are not in Proper format separated by spaces in applied Cell:
Code:Function CheckCase(txt As String) As String Dim sp As Variant sp = Split(txt) For Each ele In sp If AscW(Left(ele, 1)) < 65 Or AscW(Left(ele, 1)) > 90 Then strng = ", " & ele & strng End If Next CheckCase = Mid(strng, 3) End Function