Excel 2010, Windows 8: I have this code that changes all of the text in a range to Not Bold, then goes through the range line by line and changes everything before a colon to Bold (a colon appears in each statement). At the present time each word before the colon begins with a Capital letter. I would now like to make everything before the colon lowercase . Can someone help me with this?
Sub Bold_To_Colon()
'Makes everything NOT bold then,
'Makes all the text before the colon bold
Dim c As Range, x As Long
Range("AS18:CC617").Select
Selection.Font.Bold = False
For Each c In Range("AS18:AS" & Range("AS" & Rows.Count).End(xlUp).row)
x = InStr(c, ":")
c.Font.Bold = False
If x > 0 Then c.Characters(1, x).Font.Bold = True
Next
End Sub
Sub Bold_To_Colon()
'Makes everything NOT bold then,
'Makes all the text before the colon bold
Dim c As Range, x As Long
Range("AS18:CC617").Select
Selection.Font.Bold = False
For Each c In Range("AS18:AS" & Range("AS" & Rows.Count).End(xlUp).row)
x = InStr(c, ":")
c.Font.Bold = False
If x > 0 Then c.Characters(1, x).Font.Bold = True
Next
End Sub