Spin buttons

JannetteChristie

Board Regular
Joined
Dec 14, 2015
Messages
119
Hello,

I have a sheet with 12 spin buttons (created using ActiveX Controls) - On startup I want them all to be reset to zero but cannot seem to make it work, can anyone help please ?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Can you share a sample file ?
The code behind each of the buttons as follows:

VBA Code:
Private Sub Task1SB_Change()
If Range("F3").Value = "" Then Task1SB.Value = 0
Range("F3").Value = Task1SB.Value
'UpdateScoreToTempTable
End Sub

Private Sub Task2SB_Change()
If Range("F4").Value = "" Then Task2SB.Value = 0
Range("F4").Value = Task2SB.Value
'UpdateScoreToTempTable
End Sub

Private Sub Task3SB_Change()
If Range("F5").Value = "" Then Task3SB.Value = 0
Range("F5").Value = Task3SB.Value
'UpdateScoreToTempTable
End Sub

Private Sub Task4SB_Change()
If Range("F6").Value = "" Then Task4SB.Value = 0
Range("F6").Value = Task4SB.Value
'UpdateScoreToTempTable
End Sub
 

Attachments

  • Capture.PNG
    Capture.PNG
    25.3 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,253
Members
449,305
Latest member
Dalyb2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top