I have a column of people's names in a black font. Based on a condition (which I can code in VBA), I want to append, say, a RED Asterisk to the end of the people's names? Anyone know how to do this in VBA?
I have a column of people's names in a black font. Based on a condition (which I can code in VBA), I want to append, say, a RED Asterisk to the end of the people's names? Anyone know how to do this in VBA?
Something like
[VBA]
Sub Macro1()
For Each cel In Selection
If Left(cel, 1) = "a" Then
cel.Value = cel.Value & "*"
cel.Characters(Start:=Len(cel), Length:=1).Font.Color = vbRed
End If
Next
End Sub
[/VBA]
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
That did it! Thank you very much!!