Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Found by recording a macro...
Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWindow.DisplayWorkbookTabs = True End Sub Private Sub Workbook_Open() ActiveWindow.DisplayWorkbookTabs = False End Sub -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd recommend using the Workbook_Activate and Workbook_Deactivate event
macros, instead of Open and BeforeClose. That way it only applies to that workbook, even if there are multiple workbooks open in the XL instance. In article , kkknie wrote: Found by recording a macro... Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWindow.DisplayWorkbookTabs = True End Sub Private Sub Workbook_Open() ActiveWindow.DisplayWorkbookTabs = False End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you everyone for your assistance. I'm still having troubl
disabling the menu though. The following macro works great, but I nee to be able to view the tabs. I need to disable the tab menu, but stil view the tabs themselves, and I haven't been able to figure that on out yet. Help?!? Thank you! Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWindow.DisplayWorkbookTabs = True End Sub Private Sub Workbook_Open() ActiveWindow.DisplayWorkbookTabs = False End Su -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
He I was right then <g
Did you try my example ? -- Regards Ron de Bruin http://www.rondebruin.nl "cjsmile2106 " wrote in message ... Thank you everyone for your assistance. I'm still having trouble disabling the menu though. The following macro works great, but I need to be able to view the tabs. I need to disable the tab menu, but still view the tabs themselves, and I haven't been able to figure that one out yet. Help?!? Thank you! Private Sub Workbook_BeforeClose(Cancel As Boolean) ActiveWindow.DisplayWorkbookTabs = True End Sub Private Sub Workbook_Open() ActiveWindow.DisplayWorkbookTabs = False End Sub --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA to disable "Delete...." on shortcut menu of worksheet tab? | Excel Discussion (Misc queries) | |||
How disable menu command | Excel Discussion (Misc queries) | |||
Disable menu selection | Excel Discussion (Misc queries) | |||
Disable Worksheet Tab Menu | Excel Programming | |||
Disable Menu Item | Excel Programming |