Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Similar to an earlier post (noted below), I've created custom command
bars with associated macros pertaining to the data on a specific Excel sheet. In other words, I want to see only the toolbar containing the commands pertaining to the sheet when a sheet is selected. Here is the code I've tried: Private Sub Worksheet_Activate() If ActiveSheet.Name = ("SheetA") Then .CommandBars("SheetA").Visible = True Else .CommandBars("SheetA").Visible = False End If If ActiveSheet.Name = ("SheetB") Then .CommandBars("SheetB").Visible = True Else .CommandBars("SheetB").Visible = False End If If ActiveSheet.Name = ("SheetC") Then .CommandBars("SheetC").Visible = True Else .CommandBars("SheetC").Visible = False End If End Sub Note that I already have code for enabling the toolbars on workbook activation functioning. Thanks. Previous post: http://groups.google.com/group/micro...ef929af02d7be1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom commandbar (1 works, 1 doesn't) | Excel Programming | |||
CommandBar not Visible on Chart Pages | Excel Programming | |||
Commandbar not visible in a graphic | Excel Programming | |||
Custom Commandbar | Excel Programming | |||
Value of ComboBox on Custom CommandBar | Excel Programming |