Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / November 2003

Tip: Looking for answers? Try searching our database.

cannot set plotarea.height

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henning Winkler - 06 Nov 2003 13:35 GMT
Hi,

I try to create some Excel-diagams by VB-code.
Six diagrams are ok. But in the 7th - the last - diagram, I cannot set
the plotarea.height. The chart.height is 80 but the plotarea only 41. I
just recorded my right settings with the macro-recorder and set the
values (71 for plotarea.height), created by the recorder. But after new
run of the my program the plotarea-height is again only 41.
Any idea to solve this problem ?

Thanks Henning
Jon Peltier - 06 Nov 2003 17:54 GMT
Henning -

If the height you are trying to set is greater than the space available,
you will be unable to stretch the plot area sufficiently.  Even if there
is extra white space above the plot area, you must move it up first.

When I adjust the plot area in VBA, first I shrink it to its current
size divided by 3, then I move it to its final resting place, then I
expand the plot area to its desired dimensions.

If you're using Excel 97, and the chart isn't completely in view on the
page (the edge of the chart can't even be touching the top of the first
visible row or the left edge of the first visible column), VBA commands
to move and size the plot area generally give unintended results, but
usually they cause the plot area to grow to the largest size possible.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks Henning
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.