Applying formats to graphs

C

ccfcrup

I have some formatting which I want to apply to a number of graphs on
a sheet. Can I apply the formatting to each chart without having to
enter each individual chart name?

Thanks
 
C

ccfcrup

I have some formatting which I want to apply to a number of graphs on
a sheet. Can I apply the formatting to each chart without having to
enter each individual chart name?

Thanks

I've answered my own question after doing a bit of digging.

n = ActiveSheet.ChartObjects.Count

For i = 1 To n
With WorkSheet("Name").ChartObjects(i).Chart
'Apply Formatting
End With
Next i
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top