Thread: Spin button
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
John Bundy John Bundy is offline
external usenet poster
 
Posts: 772
Default Spin button

It is VERY simple to use, place it on the sheet and double click it. It
selects change by default, you will want to use the dropdown at the top right
to select spinup or spindown. Here is a sample to increase or decrease cell
A1 by 1

Private Sub SpinButton1_SpinDown()
Cells(1, 1) = Cells(1, 1) - 1
End Sub

Private Sub SpinButton1_SpinUp()
Cells(1, 1) = Cells(1, 1) + 1
End Sub
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Steve" wrote:

Hiya

How do you use the spin button? Arrow up arrow down ... hmm could be
useful. Anyone got a quick tutorial on increasing and decreasing a cell by
+1 and -1 ?

Thx

Steve


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 080116-0, 16/01/2008
Tested on: 16/01/2008 13:47:34
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com