Spin up event procedure for spin button : SpinButton « Forms « VBA / Excel / Access / Word

Home
VBA / Excel / Access / Word
1.Access
2.Application
3.Data Type
4.Data Type Functions
5.Date Functions
6.Excel
7.File Path
8.Forms
9.Language Basics
10.Math Functions
11.Outlook
12.PowerPoint
13.String Functions
14.Windows API
15.Word
16.XML
VBA / Excel / Access / Word » Forms » SpinButton 




Spin up event procedure for spin button
 
     Private Sub SpinButton1_SpinUp()
         With Range("B4")
             'Increase value in B4 by .05%. Stop at 1%
             .Value = WorksheetFunction.Min(0.01, .Value + 0.0005)
         End With
     End Sub

 
Related examples in the same category
1.Set the SpinButton Min/Max and current value
2.Set Spinner value to a TextBox
3.Assign value from a TextBox to a Spinner
4.The spin button control uses the SpinDown and SpinUp events to decrease and increase the value in cell B4
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.