Colin Mannion
Member
HI
I have written some simple macros which change the format of the numbers on the y-axis to reflect if they should be currency, numbers or numbers with 2 decimal places. They have been assigned to buttons and the user can change the y-axis number format as required.
However, I would really like to have the axis change automatically depending on what is selected in a cell value - i.e. if the cell is Unit Sales (in this example cell D7), then format should be a number, if it is Value sales, should be a currency etc.
Similarly there are a couple of macros which the user can click on to remove blank series so that 0s don't appear in the chart, and to re-instate them when required.
I have attached a file that has the macros in it and some base data.
Can anyone adviser on how to change the macros so that they run in background (I guess as some kind of private sub-routine).
Thanks in advance!
Colin
I have written some simple macros which change the format of the numbers on the y-axis to reflect if they should be currency, numbers or numbers with 2 decimal places. They have been assigned to buttons and the user can change the y-axis number format as required.
However, I would really like to have the axis change automatically depending on what is selected in a cell value - i.e. if the cell is Unit Sales (in this example cell D7), then format should be a number, if it is Value sales, should be a currency etc.
Similarly there are a couple of macros which the user can click on to remove blank series so that 0s don't appear in the chart, and to re-instate them when required.
I have attached a file that has the macros in it and some base data.
Can anyone adviser on how to change the macros so that they run in background (I guess as some kind of private sub-routine).
Thanks in advance!
Colin