Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Changing the font size in the charts

Hi,

In a spreadsheet i have, some 20 charts along with the data. I have to
reduce the font size for the x and y axis and the title. For one chart
i can use the active chart method to achieve.

Please tell me, how i can loop through all the charts in the sheets
and reduce the fonts.

Please help.

Thanks,
Navin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Changing the font size in the charts

Navin,

Maybe something like this. It sets the font size of tick labels and axis
titles to 8.

Sub Test()
Dim sht As Worksheet
Dim chtObject As ChartObject
Dim cht As Chart

For Each sht In Worksheets
For Each chtObject In sht.ChartObjects
Set cht = chtObject.Chart
With cht.Axes(xlCategory)
.TickLabels.Font.Size = 8
.AxisTitle.Font.Size = 8
End With
With cht.Axes(xlValue)
.TickLabels.Font.Size = 8
.AxisTitle.Font.Size = 8
End With
Next chtObject
Next sht


--
Hope that helps.

Vergel Adriano


"navin" wrote:

Hi,

In a spreadsheet i have, some 20 charts along with the data. I have to
reduce the font size for the x and y axis and the title. For one chart
i can use the active chart method to achieve.

Please tell me, how i can loop through all the charts in the sheets
and reduce the fonts.

Please help.

Thanks,
Navin


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
Changing Font color based on font type or size John Excel Discussion (Misc queries) 2 February 7th 08 12:50 AM
Combo Box font size in Charts Shirley Munro Charts and Charting in Excel 0 October 27th 05 12:38 PM
Font Size for Values in Charts Jaci Charts and Charting in Excel 1 May 27th 05 08:24 PM
automatically changing font size Jared Excel Programming 1 January 17th 05 05:22 PM
set datalabel font size for all charts in a row Marie J-son[_4_] Excel Programming 1 November 19th 04 03:18 AM


All times are GMT +1. The time now is 06:26 PM.

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"