Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default Set Increment on Spin Button to 0.1

I'm using a spin button from the control toolbar to increase the value in a
cell.

the min value i want is 0
the maximum is 2

but i want it to increase by 0.1

in the properties this doesn't seem to be allowed

help!!!!

Thanx
Mark
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Mark,

Here is one way.

Link your spinbutton to an unused cell (I use) A15. Set the max to 20. Then
in code, set the real cell's value like so

Private Sub SpinButton1_SpinUp()
Range("A16").Value = Range("A15").Value / 10
End Sub

Private Sub SpinButton1_SpinDown()
Range("A16").Value = Range("A15").Value / 10
End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mark" wrote in message
...
I'm using a spin button from the control toolbar to increase the value in

a
cell.

the min value i want is 0
the maximum is 2

but i want it to increase by 0.1

in the properties this doesn't seem to be allowed

help!!!!

Thanx
Mark



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
Command Button VBA code Dave Peterson Excel Discussion (Misc queries) 2 January 25th 05 11:28 PM
Macro to simply bring up the Find dialogue box?? marika1981 Excel Discussion (Misc queries) 14 January 14th 05 10:47 PM
How to assign a macro to a commnd button Mickey Blue Eyes Excel Discussion (Misc queries) 2 January 4th 05 02:15 PM
command button moves Stuart Excel Discussion (Misc queries) 2 December 15th 04 05:56 PM
How do I setup a spin button in excel Andy K Excel Discussion (Misc queries) 1 November 26th 04 09:08 PM


All times are GMT +1. The time now is 11:40 AM.

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

About Us

"It's about Microsoft Excel"