Excel bug? why does it change the size of my chart?

Emmanuel

New Member
Joined
May 6, 2002
Messages
7
Hi
There is something strange with a spreadsheet, which contain many charts (all represent different temperature sensors).
I've made a macro to change at once time the X-Axis range (=time axis) on all charts.

The 1st time it works without any problem but if I want to change a second time the range, then many charts will be also reduced (only the chart inside the chart frame is reduced), although the macro act only on the values of the axis (... .Axes(xlCategory).MinimumScale = ...)
Have anyone any ideas why this happen. Is there any possibility to lock the size of my chart in order that when I change something in the axis it changes only what I want?

Emmanuel :confused: :eek:
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You could store the Top, Left, Height and Width of the ChartArea before adjusting the axis scale. Then reset them afterwards.
 

Forum statistics

Threads
1,181,539
Messages
5,930,494
Members
436,741
Latest member
buckeyerich

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top