Hello
I am currently working on a macro formatting charts. I would like it to defines the size of the plot area, but so far I have not succeed.
(The macro recorder has not been very helpful...)
Any idea?
Hello
I am currently working on a macro formatting charts. I would like it to defines the size of the plot area, but so far I have not succeed.
(The macro recorder has not been very helpful...)
Any idea?
Macro recorder gave me enough code to get started.
From the macro code you can see that rather than use the selection object you can use the Plotarea object of the active chart to set size and position.Please Login or Register to view this content.
Please Login or Register to view this content.
Hello,
the Excel 2003 macro recorder captures plot area sizing nicely. What do you get?
Here is the recorded code:
which should of course be cleaned up.Please Login or Register to view this content.
Okay, I have finally understood where I was wrong. You have to define the position of the plot area before defining its size, otherwise it does not work.
Many thanks.
You are correct. You can not position or size any chart element such that it would exceed the chartarea dimensions.
This may mean moving, sizing and moving again the object in order to get the desired result.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks