Hi,
On top of a workbook i have created some navigation buttons to automate scrolling. As you can see the code is very simple but it works. The problem is that i would like to higlight the button that is pressed. So it the user pressed Inventory the inventory button is highlighte and all the other buttons are grey. i thought the toggle button would do this but than i can have a situation where multiple buttons are highlighted. Is there a way to figure out which button is active?
Cheers,
Roland
On top of a workbook i have created some navigation buttons to automate scrolling. As you can see the code is very simple but it works. The problem is that i would like to higlight the button that is pressed. So it the user pressed Inventory the inventory button is highlighte and all the other buttons are grey. i thought the toggle button would do this but than i can have a situation where multiple buttons are highlighted. Is there a way to figure out which button is active?
Code:
Private Sub Finance_Click()
ActiveWindow.FreezePanes = False
Range("a12").Select
ActiveWindow.FreezePanes = True
ActiveWindow.SmallScroll down:=100
End Sub
Private Sub Inventory_Click()
ActiveWindow.FreezePanes = False
Range("a12").Select
ActiveWindow.FreezePanes = True
ActiveWindow.SmallScroll down:=200
End Sub
Private Sub Performance_Click()
ActiveWindow.FreezePanes = False
Range("a12").Select
ActiveWindow.FreezePanes = True
ActiveWindow.SmallScroll down:=300
End Sub
Cheers,
Roland