Share via

Spinner button advance using a macro

Anonymous
2011-12-17T19:24:38+00:00

How does on use a macro to advance or step back a spinner control or scrollbar control?

I tried to record a macro whilst advancing such a control, but no code was recorded

Thanks in advance

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-12-17T19:37:55+00:00

Try code like the following:

With Worksheets("Sheet1").OLEObjects("SpinButton1").Object

    .Value = .Value + 1

End With

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2011-12-18T01:41:45+00:00

    Thanks Chip, this put me on the right track

    Was this answer helpful?

    0 comments No comments