L
Legacy 108787
Guest
I posted this here: http://stackoverflow.com/questions/494926/right-click-on-sheet-tabs-disabled-in-excel
As well.
I used this vba code in the ThisWorkbook module to disable the right click menu in an Excel workbook.
<code> </code> Works like a charm.
Problem is, I can't access the right click menu on tabs in ANY workbook now. The second part of the code is supposed to turn it back on, I assumed?
Even when I remove the code entirely, no workbook, not even a new one, has a menu when I click right on one of the tabs.
As well.
I used this vba code in the ThisWorkbook module to disable the right click menu in an Excel workbook.
Code:
Private Sub Workbook_Activate()
With Application.CommandBars.FindControl(ID:=847)
.Visible = False
End With
End Sub
Private Sub Workbook_Deactivate()
With Application.CommandBars.FindControl(ID:=847)
.Visible = True
End With
End Sub
<code> </code> Works like a charm.
Problem is, I can't access the right click menu on tabs in ANY workbook now. The second part of the code is supposed to turn it back on, I assumed?
Even when I remove the code entirely, no workbook, not even a new one, has a menu when I click right on one of the tabs.