Hi,
I have the code below which works fine but am looking to see if anyone knows of a way to speed it up - it currently takes around 12 secs to run.
You will notice that the ranges all have the same row numbers.
Many thanks.
I have the code below which works fine but am looking to see if anyone knows of a way to speed it up - it currently takes around 12 secs to run.
You will notice that the ranges all have the same row numbers.
Many thanks.
Code:
Application.ScreenUpdating = False
For Each c In Range("K23:K56,AC23:AC56,AU23:AU56,BM23:BM56,CE23:CE56,CW23:CW56,EG23:EG56,EY23:EY56,FQ23:FQ56,GI23:GI56,HA23:HA56,HS23:HS56,IK23:IK56,JC23:JC56,JV23:JV56,KM23:KM56,LE23:LE56,LW23:LW56,MO23:MO56")
Select Case Len(c)
Case 80 To 130
c.Font.Size = 10
Case 131 To 150
c.Font.Size = 9
Case Is > 150
c.Font.Size = 8
Case Else
c.Font.Size = 11
End Select
Next
Application.ScreenUpdating = True
Last edited by a moderator: