Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
oops. missed a bit
Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet1" Then Application.CommandBars("Cell").Enabled = False Else Application.CommandBars("Cell").Enabled = True End If End Sub -- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Put this in the ThisWorkbook code module Private Sub Workbook_SheetActivate(ByVal Sh As Object) If Sh.Name = "Sheet1" Then CommandBars("Cell").Enabled = False Else CommandBars("Cell").Enabled = True End If End Sub -- HTH RP (remove nothere from the email address if mailing direct) "JT" wrote in message ... I have a macro where when I right click on a cell, I get a form to display through a private sub. However, once the form is closed, the "usual" menu (cut, copy, insert, etc.) you get when you right click is displayed. Is there a way to disable the "usual" menu from appearing on this worksheet only? Thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
disable customize option when right click on menu bar | Excel Discussion (Misc queries) | |||
disable right mouse click on "Worksheet Menu Bar" | Excel Programming | |||
Disable Right click | Excel Programming | |||
Adding a menu item right click menu when clicking on a single. | Excel Programming | |||
Adding menu to the mouse right click pop-up menu | Excel Programming |