Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I created a custom mene that I assigned a macro to. But it keeps showing up
in other files. How do I get it to show only in the workbook it was created for and not in every other workbook. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In the workbook module, apply the following to the Activate/Deactivate
Open/Before close workbook triggers: ************************************************* Private Sub Workbook_Activate() Workbook_Open End Sub Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("Your_Menu_Name_Here").Vis ible = False End Sub Private Sub Workbook_Deactivate() Workbook_BeforeClose True End Sub Private Sub Workbook_Open() Application.CommandBars("Your_Menu_Name_Here").Vis ible = True End Sub ************************************************* -- Kevin Backmann "Ayo" wrote: I created a custom mene that I assigned a macro to. But it keeps showing up in other files. How do I get it to show only in the workbook it was created for and not in every other workbook. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I keep getting the "Invalid procedure call or argument" error on:
Application.CommandBars("Generate Report").Visible = True and Application.CommandBars("Generate Report").Visible = False What am I doing wrong? "Kevin B" wrote: In the workbook module, apply the following to the Activate/Deactivate Open/Before close workbook triggers: ************************************************* Private Sub Workbook_Activate() Workbook_Open End Sub Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("Your_Menu_Name_Here").Vis ible = False End Sub Private Sub Workbook_Deactivate() Workbook_BeforeClose True End Sub Private Sub Workbook_Open() Application.CommandBars("Your_Menu_Name_Here").Vis ible = True End Sub ************************************************* -- Kevin Backmann "Ayo" wrote: I created a custom mene that I assigned a macro to. But it keeps showing up in other files. How do I get it to show only in the workbook it was created for and not in every other workbook. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom View issue - maybe even a bug?! | Excel Discussion (Misc queries) | |||
custom menu | Excel Discussion (Misc queries) | |||
Custom Menu Help | Excel Worksheet Functions | |||
Custom menu | Excel Worksheet Functions | |||
Keep Custom Menu settings - help !! | Excel Worksheet Functions |