Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Simon.
The popup menu encountered in reponse to right-clicking a worksheet tab is the Ply CommandBar. To orevent the popup, it is necessary to disable the commandbar, as in my suggsted code. The popup will remain disabled until it is explicitly re-enabled. Therefore, if the popup is to be disabled only for a specific workbook, try disabling the popup in the relevant workbook's open and deactivate events and re-enable it in the Workbook_Deactivate event, e,g.: '============= Private Sub Workbook_Open() Application.CommandBars("Ply").Enabled = False End Sub '--------------- Private Sub Workbook_Deactivate() Application.CommandBars("Ply").Enabled = True End Sub '--------------- Private Sub Workbook_Activate() Application.CommandBars("Ply").Enabled = False End Sub '<<============= --- Regards, Norman "Simon Lloyd" wrote in message ... Norman cheers! that worked........can you explain why it did? as i was a little wary about adding the line because in my Auto_open code i turn off command bars and turn on a custom bar, but didn't have to make any other reference to the one you supplied...............do i have to enable the bar when exiting the workbook? Regards, Simon -- Simon Lloyd ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708 View this thread: http://www.excelforum.com/showthread...hreadid=565059 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linked Spreadsheets - Preventing Access to Source Sheet | Excel Discussion (Misc queries) | |||
shortcut for right click on sheet bar | Excel Discussion (Misc queries) | |||
Before right click in a sheet | Excel Programming | |||
Preventing users to move object in the sheet | Excel Programming | |||
Preventing someone from unhiding a sheet | Excel Programming |