Fireredeel
New Member
- Joined
- Oct 8, 2019
- Messages
- 5
Hello I have attached my Code below. I keep getting the Run-Time error '424': Object Required on the code in the loop. Any help is greatly appreciated.
Code:
Sub p()
Dim cht As ChartObject
Dim sht As Worksheet
Dim CurrentSheet As Worksheet
Set CurrentSheet = ActiveSheet
For Each cht In ActiveSheet.ChartObjects
ActiveChart.Axes(xlValue).TickLabels.Font.Color.RGB = RGB(60, 60, 60)
ActiveChart.Axes(xlCategory).TickLabels.Font.Color.RGB = RGB(60, 60, 60)
Next cht
End Sub
Last edited by a moderator: