Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
I have this code for a scroll bar to change the active sheets: Private Sub ScrollBar1_Change() UserForm1.Label1.Caption = ScrollBar1.Value MySheet = UserForm1.ScrollBar1.Value MySheetName = "Sheet" & MySheet Sheets(MySheetName).Select End Sub However I would like that the active sheet should change while I'm draggind up or down. As of now only when I click on the "up" or down arrow, then it is considered a change and updates itself. But I need it to change while dragging up and down as well. Please help. thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 9, 2:12*am, art wrote:
Hello: I have this code for a scroll bar to change the active sheets: Private Sub ScrollBar1_Change() * * UserForm1.Label1.Caption = ScrollBar1.Value * * MySheet = UserForm1.ScrollBar1.Value * * MySheetName = "Sheet" & MySheet * * Sheets(MySheetName).Select End Sub However I would like that the active sheet should change while I'm draggind up or down. As of now only when I click on the "up" or down arrow, then it is considered a change and updates itself. But I need it to change while dragging up and down as well. Please help. thanks. Add the code to the Scrollbar Scroll event. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007: continuously update scatter chart from scroll bars | Excel Discussion (Misc queries) | |||
Userform Scroll Bar Doesn't Update in Real time ??? | Excel Programming | |||
Adding a scroll bar to a cell to scroll its contents. | Excel Programming | |||
adding scroll bar to scroll on cell's content? | Charts and Charting in Excel | |||
Scroll horizontaly with mouse, create same system used to scroll . | New Users to Excel |