Colin Mannion
Member
HELLO
I have a large number of charts where i need to update the format e.g. remove borders, change fonts etc.
Have tried to put together a quick macro based on something I found online but it hasn't worked - see file attached - you can see I am a novice at this.
Sub Update_Chart()
Dim cht As ChartObject
Dim sht As Worksheet
Application.ScreenUpdating = False
Application.EnableEvents = False
For Each cht In sht.ChartObjects
cht.Activate
Active.Chart.Line.Visible = msoFalse
Next cht
CurrentSheet.Activate
Application.EnableEvents = True
End Sub
If anyone has a quick solution for this, it would be appreciated
Thanks in advance.
Colin
I have a large number of charts where i need to update the format e.g. remove borders, change fonts etc.
Have tried to put together a quick macro based on something I found online but it hasn't worked - see file attached - you can see I am a novice at this.
Sub Update_Chart()
Dim cht As ChartObject
Dim sht As Worksheet
Application.ScreenUpdating = False
Application.EnableEvents = False
For Each cht In sht.ChartObjects
cht.Activate
Active.Chart.Line.Visible = msoFalse
Next cht
CurrentSheet.Activate
Application.EnableEvents = True
End Sub
If anyone has a quick solution for this, it would be appreciated
Thanks in advance.
Colin