ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   chart area size vba (https://www.excelbanter.com/charts-charting-excel/108766-chart-area-size-vba.html)

[email protected]

chart area size vba
 
How can I set the chart size of an existing active/selected chart?

I tried this withing a sub routine:

With ActiveChart.ChartArea
.Width = 5
.Height = 3
End With


And get the error message: Unable to Set the Width Property of the
ChartArea Class

Any help is appreciated.


Andy Pope

chart area size vba
 
Hi,

If the chart is on a worksheet this will work, although your chart will
be very small.

With ActiveChart.Parent
.Width = 5
.Height = 3
End With

Cheers
Andy

wrote:
How can I set the chart size of an existing active/selected chart?

I tried this withing a sub routine:

With ActiveChart.ChartArea
.Width = 5
.Height = 3
End With


And get the error message: Unable to Set the Width Property of the
ChartArea Class

Any help is appreciated.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info


All times are GMT +1. The time now is 02:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com