#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Chart size

I have a macro that creats chart. Now I want to be able to set the size of
the plot area exactly. The code I am using is:

With ActiveChart
.PlotArea.Width = 10000
.PlotArea.Height = 10000
...............
End With

However this does not seem to work. I dont know if it is only the relative
size between height and width that can be set this way or..How do you set the
size of the plot area (recording a marco is not useful for me since it does
not give exact size). Do you have to set the size of the whole chart first?
If so how? Please assist me if you have any idea!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Chart size

Hi,

The plotarea is restrained by the chartarea. The chart will not increase
in size to accommodate the plotarea, you will need to check and modify
the chartarea size first.

Cheers
Andy

Nick London wrote:
I have a macro that creats chart. Now I want to be able to set the size of
the plot area exactly. The code I am using is:

With ActiveChart
.PlotArea.Width = 10000
.PlotArea.Height = 10000
..............
End With

However this does not seem to work. I dont know if it is only the relative
size between height and width that can be set this way or..How do you set the
size of the plot area (recording a marco is not useful for me since it does
not give exact size). Do you have to set the size of the whole chart first?
If so how? Please assist me if you have any idea!


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
HOW TO FIX SIZE OF CHART BOX Khoshravan Charts and Charting in Excel 0 September 4th 07 11:36 AM
Size of Chart Paula Excel Discussion (Misc queries) 1 June 25th 07 05:04 PM
Specifying the size (in cm) of a chart ? Xavier Excel Programming 2 April 13th 06 12:07 PM
chart size zdenek Charts and Charting in Excel 0 February 9th 06 09:58 AM
copy charts & paste as picture, hide chart, size & place same picture as chart Gunnar Johansson Excel Programming 0 October 30th 04 01:22 AM


All times are GMT +1. The time now is 10:09 PM.

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"