trouble setting plotarea size

A

Albert

Hello... I have not been able to fix the plotarea size of a chart I'm making.
Here's the code:
For Each chtobj In ActiveSheet.ChartObjects
With chtobj
.Width = 200
.Height = 200
End With
Next chtobj
ActiveChart.PlotArea.Width = 1000
ActiveChart.PlotArea.Height = 1000
I want the PlotArea to occupy most of the chart area, hence the 1000...
However, it doesn't work. I'm getting a very smal plotarea.
What to do?
Thanks,
Albert
 
F

Franz Verga

Albert said:
Hello... I have not been able to fix the plotarea size of a chart I'm
making. Here's the code:
For Each chtobj In ActiveSheet.ChartObjects
With chtobj
.Width = 200
.Height = 200
End With
Next chtobj
ActiveChart.PlotArea.Width = 1000
ActiveChart.PlotArea.Height = 1000
I want the PlotArea to occupy most of the chart area, hence the
1000... However, it doesn't work. I'm getting a very smal plotarea.
What to do?
Thanks,
Albert

Hi Albert,

try to record (by macro recorder...) a macro while you are setting manually
the plot area size, so you can see what are the right numbers...


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
A

Albert

For some odd reason, the procedure works fine when ScreenUpdating = True.
However, when ScreenUpdating = False, the chart proportions get messed up (I
export the chart as jpg. before the procedure finishes). Do you know any way
around this issue?
Thanks,
Albert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top