Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default A macro to change font size

Hi,

I have four graphs in one worksheet and I have about 15 worksheets. It
is a tiresome process to go to each and every graph to change the font
size of x-axes, y-axes, bar values, x and y labels etc.... I tried
using a macro to do this but it is sticking to one worksheet which i
recorded the macro and doesn't change the others. Is there a way to
avoid this tiresome process? Thanks

Swamy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default A macro to change font size

Sub Test()
Dim ws As Worksheet
Dim chtObj As ChartObject

For Each ws In ActiveWorkbook.Worksheets
For Each chtObj In ws.ChartObjects
chtObj.Chart.ChartArea.Font.Size = 10
Next
Next

End Sub

Regards,
Peter T
"Mahadevan Swamy" wrote in message
oups.com...
Hi,

I have four graphs in one worksheet and I have about 15 worksheets. It
is a tiresome process to go to each and every graph to change the font
size of x-axes, y-axes, bar values, x and y labels etc.... I tried
using a macro to do this but it is sticking to one worksheet which i
recorded the macro and doesn't change the others. Is there a way to
avoid this tiresome process? Thanks

Swamy



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 font size on screen, but prints in old size lvrcdval Excel Discussion (Misc queries) 2 July 19th 07 02:36 PM
change scaling % but font size didnt change porportionally, pls he Scaling question Excel Discussion (Misc queries) 0 March 12th 07 03:16 AM
Change all text one font size up with various font sizes used. omchrystal New Users to Excel 2 March 6th 07 09:01 PM
Change Font Size Steve Klenner Excel Worksheet Functions 2 November 14th 04 09:34 PM
Change the font size for Row numbers R Avery Excel Programming 1 November 9th 04 03:05 PM


All times are GMT +1. The time now is 03:22 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"