#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 40
Default chart resize macro

Hi all,

I often have to put a large number of charts in a report that need to be the
same size.

I'd like to create a macro that automatically resizes selected charts rather
than manually resizing each one.

I've tried to record a macro where I select a chart and resize it but the
resizing part doesn't seem to get recorded.

Any idea on how I would do this?

Thanks,

Josh
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 238
Default chart resize macro

Sub ChartResize1024x768()
Dim oCht As Chart
Set oCht = ActiveChart
oCht.Parent.Width = 768 '1024*.75=768
oCht.Parent.Height = 576 '768 *.75=576
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 40
Default chart resize macro

Works perfectly. Thanks very much!

"Fan924" wrote:

Sub ChartResize1024x768()
Dim oCht As Chart
Set oCht = ActiveChart
oCht.Parent.Width = 768 '1024*.75=768
oCht.Parent.Height = 576 '768 *.75=576
End Sub



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
Pie Chart Resize Andrew Charts and Charting in Excel 2 October 13th 08 08:30 PM
resize chart Souris Charts and Charting in Excel 7 January 14th 08 03:02 PM
resize chart ayesha Charts and Charting in Excel 1 October 16th 06 09:06 AM
Chart resize macro Eric_B Charts and Charting in Excel 1 May 10th 06 06:30 PM
How do I resize a chart in Excel after the chart has been saved... DianaQ Charts and Charting in Excel 2 March 19th 05 05:27 AM


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