PC Review


Reply
Thread Tools Rate Thread

Change all Chart Legend FONT sizes across entire spreadsheet

 
 
flightsim.gregory@yahoo.com
Guest
Posts: n/a
 
      24th Aug 2007
Have file folders with dozens of spreadsheets and noticed the CHART
LEGEND fonts a too BIG. I'd like to change ALL chart legend font sizes
on all worksheets in a spreadsheet at once.. using a tool or script,
etc. Any solutions? There are simply too many charts to open and
change fonts individually.

-G

 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      25th Aug 2007
The following code will change the font size in all charts in the active
workbook:

'=======================
Sub ChangeLegendFont()

Dim chObj As ChartObject
Dim ws As Worksheet
Dim ch As Chart
Dim lFont As Long

lFont = 6 'set the font size

For Each ws In ThisWorkbook.Worksheets
For Each chObj In ws.ChartObjects
chObj.Chart.Legend.Font.Size = lFont
Next chObj
Next ws

For Each ch In ThisWorkbook.Charts 'chart sheets
ch.Legend.Font.Size = lFont
Next ch

End Sub
'================

(E-Mail Removed) wrote:
> Have file folders with dozens of spreadsheets and noticed the CHART
> LEGEND fonts a too BIG. I'd like to change ALL chart legend font sizes
> on all worksheets in a spreadsheet at once.. using a tool or script,
> etc. Any solutions? There are simply too many charts to open and
> change fonts individually.
>
> -G
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
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
Excel 2002 how to change font for entire spreadsheet jbclem Microsoft Excel Discussion 2 8th Oct 2010 11:16 AM
Chart series legend font size keeps shrinking - how to stop it? IanQa Microsoft Excel Charting 0 4th Feb 2010 08:49 PM
Change all text one font size up with various font sizes used. =?Utf-8?B?b21jaHJ5c3RhbA==?= Microsoft Excel New Users 2 6th Mar 2007 09:01 PM
Powerpoint Chart Title and Legend with Shadow Font emdoller@doller.net Microsoft Powerpoint 6 23rd Jul 2006 05:33 PM
Chart Marker Styles and Legend Font rekoop Microsoft Excel Charting 2 17th Feb 2004 05:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:07 AM.