LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default size of the plot area

How can I adjust the size of the plot area with VBA?

Here's what I've done
After I selected the plot area, I run this macro,
MsgBox Selection.Top
MsgBox Selection.Height

And then, I tried to change the size of the Plot area by using this code,
ActiveSheet.ChartObjects(1).Activate
ActiveChart.PlotArea.Select
With Selection
.Top = 20
.Height = 60
End With

However, when I checked the size with the MsgBox, they were not the size I
specified.
What's wrong with the code?

Thanks.


 
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
Increase plot size within Chart area Ropesend Charts and Charting in Excel 3 December 13th 07 02:07 PM
Excel2007 -- Precisely set plot area size? Cassie Charts and Charting in Excel 3 October 5th 07 10:34 PM
Excel Chart Plot Area Auto Size jack Charts and Charting in Excel 4 August 28th 07 01:53 AM
How to change plot area size of pivot chart juamig Charts and Charting in Excel 3 May 11th 06 12:16 PM
Unable to change plot area size Shinichi Excel Programming 1 September 26th 03 02:50 AM


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