Charts - Using a variable to set Min/Max Axis Values

fjaffe

New Member
Joined
Sep 17, 2008
Messages
1
I'm sure this is either easy or impossible. My level of skill is good with Excel, very low with VBA. I'd like to create a chart, and use a variable or name to flexibly set the minimum and maximum values for the X and/or Y axis. When I try, I get an error message that says "Your entry can not be used, an integer or decimal number may be required."
The application is a bowling league. Team members may have scores between zero and three hundred. In order to maximize the use of space, I'd like to set the minimum value of the axis to 10 pins less than the lowest score (season to date), and the maximum value to 10 pins greater than the highest score to date. Finding these scores is, of course easy. Getting the axis to set the min and max values is the part I can't seem to make happen.
I haven't tried using VBA to do this, cause I'm pretty much VBA clueless. Is there, in fact, any way to do this in straight excel? If not, can anyone point me to a VBA example I can crib from? My google-fu failed me. Thanks in advance!!!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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
Back
Top