Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MS Excel 2003
I have created a custom toolbar (called Toolbar) and assigned some macros to it. I created the toolbar using the standard right clickcustomiseToolbarsnew. I want the floating toolbar to only be displayed when a particular sheet is being viewed ("Schedule") and hidden if it is not. As such under the Schedule Sheet I have added the following code Private Sub Worksheet_Activate() If ActiveSheet.Name = ("Schedule") Then CommandBars("Toolbar").Enabled = True CommandBars("Toolbar").Visible = True Else: CommandBars("Toolbar").Visible = False End If End Sub Enabling and showing the toolbar works when I select the schedules sheet. However, as the schedules sheet is the default sheet displayed I need to first select another sheet and then reselect schedules before the toolbar is displayed. Once the toolbar is displayed and I select another sheet (any other sheet besides schedules) I want it to be hidden from view.... but it isnt. I have the same problem with the toolbar being visible when I close the workbook. I need the toolbar to be closed when the workbook is closed. Hope one of you guys can point me in the right direction. Thanks Carmi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding Customised Buttons to a toolbar | Excel Discussion (Misc queries) | |||
missing invoice toolbar when save customised invoice | New Users to Excel | |||
Enable toolbar button in one specific worksheet | Excel Programming | |||
Displaying Custom Toolbar in Specific Worksheet | Excel Programming | |||
how to enable / disable customised button on toolbar | Excel Programming |