Totally stumped on this, I want to convert the Names in a column to proper case but I do not want to change there titles.
How to convert to proper case up to the first ,
BOB FEGESON
Sally Ran, Ph.D.
GREG HYMAN, MA, CPCC
I Get
Bob Fegeson
Sally Ran, Ph.d.
Greg Hyman, Ma, Cpcc
Want
Bob Fegeson
Sally Ran, Ph.D.
Greg Hyman, MA, CPCC
Thanks
This converts to proper case if If InStr(cell.Formula, ",") > 0
Sub FindChr()
Dim rAcells As Range
Dim rLoopCells As Range
Dim lReply As Long
Dim myRange As Range
Dim cell As Range
'Set variable to needed cells
Set rAcells = Range("D2", Range("D" & Rows.Count).End(xlUp))
Set rAcells = rAcells.SpecialCells(xlCellTypeConstants, xlTextValues)
Set myRange = Range("D2", Range("D" & Rows.Count).End(xlUp))
For Each cell In myRange
If InStr(cell.Formula, ",") > 0 Then
"Cant Not Figure out what goes here"
Else
' Convert to Proper Case
For Each rLoopCells In rAcells
rLoopCells = StrConv(rLoopCells, vbProperCase)
Next rLoopCells
End If
Next cell
End Sub