Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cweed
 
Posts: n/a
Default How To Change Fonts In Multiple Charts in a Workbook?


I have a workbook with approx 120 charts spread out over 30 worksheets.
Each worksheet has 4 charts on it.
Each of the 4 charts has different data and Values.
I would like them all to have the same fonts (made the mistake of not
checkin when I produced the charts originaly ) but the X axis and
coloring is different in each of the 4 charts. I have tried copying the
"formats" but this changes everying in the chart but the data itself.

Is there a macro to help with this or possibly something easier that I
am over looking?

Thanks


--
Cweed
------------------------------------------------------------------------
Cweed's Profile: http://www.excelforum.com/member.php...o&userid=26765
View this thread: http://www.excelforum.com/showthread...hreadid=400179

  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

Untested, but this is about how it would look:

Sub ChangeChartFonts()
Dim sh As Object
Dim ch As Chart
Dim co As ChartObject

' chart sheets
For Each ch In ActiveWorkbook.Charts
ch.ChartArea.Font.Name = "Arial"
Next

' chart objects embedded on sheets
For Each sh In ActiveWorkbook.Sheets
For Each co In sh.ChartObjects
co.Chart.ChartArea.Font.Name = "Arial"
Next
Next

End Sub


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Cweed wrote:

I have a workbook with approx 120 charts spread out over 30 worksheets.
Each worksheet has 4 charts on it.
Each of the 4 charts has different data and Values.
I would like them all to have the same fonts (made the mistake of not
checkin when I produced the charts originaly ) but the X axis and
coloring is different in each of the 4 charts. I have tried copying the
"formats" but this changes everying in the chart but the data itself.

Is there a macro to help with this or possibly something easier that I
am over looking?

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CHANGE SET-UP ON MULTIPLE SHEETS AT 1 TIME DEMONET48 Excel Discussion (Misc queries) 2 January 14th 05 08:37 PM
HOW CAN I CHANGE SET-UP ON MULTIPLE SHEETS AT 1 TIME? DEMONET48 Setting up and Configuration of Excel 0 January 14th 05 07:53 PM
How to change fonts in drop down list Dennis Excel Discussion (Misc queries) 1 January 12th 05 01:49 PM
change axis info on radar charts alfred Charts and Charting in Excel 1 January 11th 05 04:36 AM
How do I change the default settings in charts? drahcir Charts and Charting in Excel 1 December 14th 04 11:30 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"