Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / August 2007

Tip: Looking for answers? Try searching our database.

Change all Chart Legend FONT sizes across entire spreadsheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
flightsim.gregory@yahoo.com - 24 Aug 2007 15:37 GMT
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 - 25 Aug 2007 16:49 GMT
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
'================

> 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
[quoted text clipped - 3 lines]
>
>    -G

Signature

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.