LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Kim
 
Posts: n/a
Default

Thank you very much! :)

"John Mansfield" wrote:

Kim, adding to Andy's note . . .

This macro will size all of the charts on the active sheet to the same
height and width. It also lines each chart up to a vertical left side
border. To change the sizes of the charts, make changes to the height and
width numbers.

If you only want the macro to size the charts the same without aligning
them, put an apostrophe ( ) in from of the ChtObj.Left = 100 line.

To copy the macro into your workbook, go to Tools - Macro - Visual Basic
Editor. In the toolbar, go to Insert - Module. Copy the macro into the new
code module. When youve completed copying the macro into the module, go
back to the toolbar and hit File - Close to get back to the spreadsheet.

Sub SizeCharts()
Dim ChtObj As ChartObject
If ActiveChart Is Nothing Then MsgBox "Click on a chart and then run
macro"
For Each ChtObj In ActiveSheet.ChartObjects
ChtObj.Left = 100
ChtObj.Width = 336
ChtObj.Height = 204
Next ChtObj
End Sub

To run the macro, click on a chart and go to Tools - Macro - Macros - and
run the macro called SizeCharts.

----
Regards,
John Mansfield
http://www.pdbook.com



"Kim" wrote:

I have 9 charts on one legal size area and would like all of them to be
exactly the same size. If you drag the charts, they still look off balance.
Is there a way to enter specific sizes? Thank you!!



 
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
xl chart font sizing into PPT Brian Reilly, MS MVP Charts and Charting in Excel 1 January 12th 05 02:58 AM
How do I change the size of the text box in a flow chart? Breanne Charts and Charting in Excel 1 January 6th 05 06:05 PM
Impedding/Overlaying Charts Phil Hageman Charts and Charting in Excel 4 December 17th 04 07:25 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM
export chart - size problem Art Parra Charts and Charting in Excel 1 December 7th 04 01:58 AM


All times are GMT +1. The time now is 03:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"