![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Many times the automatic Scale option for Y-axis in charts doesn't fit to the optimal range of the values for a good appreciation of the fluctuation.
To avoid multiple manual Y-axis scale adjust, I run a macro but I wonder if there is a better solution. Yor tip would be appreciated [ This Message was edited by: frajaro on 2002-04-24 09:30 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
|
Hi frajaro,
Since you apparently already have a macro that adjusts the axis scaling the way you want it, why not make the macro run automatically every time the chart re-calculates? You could use the Chart object Calculate event to do this. Just look up the topic "Chart Object Events" in the VBA helps. If your chart is embedded (rather than a chart sheet), you will need to also look at the topic "Using Events with Embedded Charts".
__________________
Keep Excelling. Damon VBAexpert Excel Consulting (My other life: http://damonostrander.com ) |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Thanks Damon,
really useful your advice, regards, Francisco |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|