Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ash007
 
Posts: n/a
Default Change a cell's value using a button

Hi - I know its possible but have no idea how to do it - How do I set up a
cell with two buttons attached to it that increase and decrease the value in
the cell? I.e. if I have a cell with 10% in it and hit the "up" button, the
number goes up by 0.5% and down by the same amount if I hit the "down" button?
I am pretty good in Excel but dont know anything about macros - but Im
really not sure where you find this function. Thanks for your help in advance
anyone!
--
Ashley
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

No macros required. Use a spin button control rather than
2 buttons. Follow these steps:

1. Go to View Toolbars Control Toolbox.
2. Click once on the spin button icon and draw one on
your worksheet.
3. Right-click the spin button and go into "Properties".
4. Enter "A2" (no quotes) into "LinkedCell".
5. Close Properties.
6. Set up columns J and K to look like the following:

J K
0 0
1 0.5%
2 1.0%
3 1.5%
4 2.0%
5 2.5%
6 3.0%
7 3.5%

and so on.

7. Insert this formula into A1:
=VLOOKUP(A2,J:K,2,0)
and format as %.
8. Click the "Exit Design Mode" icon on the toolbar and
close the Control Toolbox.
9. Click away!

HTH
Jason
Atlanta, GA


-----Original Message-----
Hi - I know its possible but have no idea how to do it -

How do I set up a
cell with two buttons attached to it that increase and

decrease the value in
the cell? I.e. if I have a cell with 10% in it and hit

the "up" button, the
number goes up by 0.5% and down by the same amount if I

hit the "down" button?
I am pretty good in Excel but dont know anything about

macros - but Im
really not sure where you find this function. Thanks for

your help in advance
anyone!
--
Ashley
.

  #3   Report Post  
Ash007
 
Posts: n/a
Default

nice - thanks very much...

"Jason Morin" wrote:

No macros required. Use a spin button control rather than
2 buttons. Follow these steps:

1. Go to View Toolbars Control Toolbox.
2. Click once on the spin button icon and draw one on
your worksheet.
3. Right-click the spin button and go into "Properties".
4. Enter "A2" (no quotes) into "LinkedCell".
5. Close Properties.
6. Set up columns J and K to look like the following:

J K
0 0
1 0.5%
2 1.0%
3 1.5%
4 2.0%
5 2.5%
6 3.0%
7 3.5%

and so on.

7. Insert this formula into A1:
=VLOOKUP(A2,J:K,2,0)
and format as %.
8. Click the "Exit Design Mode" icon on the toolbar and
close the Control Toolbox.
9. Click away!

HTH
Jason
Atlanta, GA


-----Original Message-----
Hi - I know its possible but have no idea how to do it -

How do I set up a
cell with two buttons attached to it that increase and

decrease the value in
the cell? I.e. if I have a cell with 10% in it and hit

the "up" button, the
number goes up by 0.5% and down by the same amount if I

hit the "down" button?
I am pretty good in Excel but dont know anything about

macros - but Im
really not sure where you find this function. Thanks for

your help in advance
anyone!
--
Ashley
.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I Need to change reference sheet for all cells on a form Brent E Excel Discussion (Misc queries) 1 February 11th 05 01:36 AM
How do I link two cells as to allow me to change the value in eit. jpvlvt Excel Discussion (Misc queries) 3 January 26th 05 01:28 AM
Change a cell's fill color dynamically? Arlen Excel Discussion (Misc queries) 2 January 22nd 05 09:51 PM
automatic color change in cells using a drop down list kennethwt Excel Worksheet Functions 1 January 21st 05 06:37 PM
Macro button colour change??? Beefyme Excel Worksheet Functions 1 November 19th 04 06:15 PM


All times are GMT +1. The time now is 05:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"