elotromateo
New Member
- Joined
- May 19, 2010
- Messages
- 42
I have two ActiveX controls (scrollbars), both connected to the same linked cell. One (Win) is in the same sheet as the cell, the other (Sum) is in a separate sheet. The problem is, whenever one bar is changed, I end up looking at the wrong screen. I tried having the final instruction be to go to the other sheet, since it should run through its code first and then look at the other one's code since it's value changed, but this just made it end on one sheet always.
It think the problem is that it runs the Sum scroll bar first, regardless of which was clicked first. Is there any way to force it to run it's own code before the other's?
It think the problem is that it runs the Sum scroll bar first, regardless of which was clicked first. Is there any way to force it to run it's own code before the other's?
Code:
Private Sub ScrollBarWin_Change()
'Code Here
Sheets("Summer Graphs").Select
End Sub
Code:
Private Sub ScrollBarSum_Change()
'Code Here
Sheets("Winter Graphs").Select
End Sub