#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 148
Default Spinbutton

I would like to use a spinbutton on a userform. I can get the button to work
well going one way but can not seem to get it to go the other way. Ex
I would like to button to produce an acending number while clicking on one
side of the spinner and decending while clciking the other side
My code now reads as follow: spinbutton1.value=spinbutton1.value+1
and that add a one to the spinbutton when I press on EITHER side of the
button.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,290
Default Spinbutton


Look at the two drop downs at the top of the userform module.
The right drop down displays the "Events" associated with what is
selected in the left drop down...

Private Sub SpinButton1_SpinDown()
Cells(5, 2).Value = Me.SpinButton1.Value
End Sub

Private Sub SpinButton1_SpinUp()
Cells(5, 3).Value = Me.SpinButton1.Value
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"pcor"
wrote in message
I would like to use a spinbutton on a userform. I can get the button to work
well going one way but can not seem to get it to go the other way. Ex
I would like to button to produce an acending number while clicking on one
side of the spinner and decending while clciking the other side
My code now reads as follow: spinbutton1.value=spinbutton1.value+1
and that add a one to the spinbutton when I press on EITHER side of the
button.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 148
Default Spinbutton

Thanks...I had forgotten where to look

"Jim Cone" wrote:


Look at the two drop downs at the top of the userform module.
The right drop down displays the "Events" associated with what is
selected in the left drop down...

Private Sub SpinButton1_SpinDown()
Cells(5, 2).Value = Me.SpinButton1.Value
End Sub

Private Sub SpinButton1_SpinUp()
Cells(5, 3).Value = Me.SpinButton1.Value
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"pcor"
wrote in message
I would like to use a spinbutton on a userform. I can get the button to work
well going one way but can not seem to get it to go the other way. Ex
I would like to button to produce an acending number while clicking on one
side of the spinner and decending while clciking the other side
My code now reads as follow: spinbutton1.value=spinbutton1.value+1
and that add a one to the spinbutton when I press on EITHER side of the
button.
Thanks


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
How:spinbutton to display negative integers(e.g. range -10 to 10) Boris Excel Discussion (Misc queries) 6 May 15th 23 03:45 AM
help on spinbutton controllinng a text or ComboBox showing time [email protected] Excel Discussion (Misc queries) 4 July 29th 07 04:11 AM
Spinbutton Ben B Excel Discussion (Misc queries) 3 March 9th 06 11:38 AM


All times are GMT +1. The time now is 10:48 AM.

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"