PC Review


Reply
Thread Tools Rate Thread

How To Change Fonts In Multiple Charts in a Workbook?

 
 
Cweed
Guest
Posts: n/a
 
      29th Aug 2005

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 no
checkin when I produced the charts originaly ) but the X axis an
coloring is different in each of the 4 charts. I have tried copying th
"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
am over looking?

Thank

--
Cwee
-----------------------------------------------------------------------
Cweed's Profile: http://www.excelforum.com/member.php...fo&userid=2676
View this thread: http://www.excelforum.com/showthread.php?threadid=40017

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      30th Aug 2005
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How do I change the X axis scale on all charts in a workbook? Jon Peltier Microsoft Excel Charting 2 22nd Jul 2009 01:59 AM
Pie charts with data from multiple worksheets in one workbook Mary Microsoft Excel Charting 0 7th Jul 2008 09:37 PM
linking multiple charts from one xcl workbook =?Utf-8?B?VXNlcg==?= Microsoft Excel Charting 1 20th Jan 2006 02:23 PM
fonts change in embedded charts if screen resolution too low =?Utf-8?B?UHV6emxlZA==?= Microsoft Powerpoint 0 27th Apr 2005 10:56 PM
Print all charts in a workbook (multiple worksheets) =?Utf-8?B?YWV3c2F3cw==?= Microsoft Excel Charting 3 31st Dec 2004 10:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 PM.