I'm trying to set a macro to change a font size for every cell in range("A-A"). If the value in that cell starts with: "chapter" then change the font size to 20.
Sub bak()
Dim a As Range
Dim c As Range
Dim lr As Long
lr = Cells(Rows.Count, 1).End(xlUp).Row
Set a = Range("A1:A" & lr)
For Each c In a
If Left(c, 7) = "chapter" Then c.Font.Size = 20
Next c
End Sub