hi all
How to disable option move or copy?
hi all
How to disable option move or copy?
How to disable right click on the tab sheet?
You can easily disable move or copy sheet by protect workbook in Review tab and you don't need to disable right click because by protecting workbook the options (Insert, Delete, Rename, Move or copy sheet, Tab color, Hide, Unhide)
will be disable. Just protect workbook (check the structure and uncheck the windows). Also you can edit your workbook when it is protected.
I like to be help full to my dear friends and I like Help full friends. Because ( A Friend in need is A Friend in dead)
Hi everyoneOriginally Posted by Esmatullah
Thanks for the response, my good friend
But I wanted to know whether the code can be deactivated completely, right click on the sheet tab??
If you mean you wish to disable this particular context menu, try:
In the ThisWorkbook Module:
[VBA]Option Explicit
Private Sub Workbook_Activate()
Application.CommandBars("Ply").Enabled = False
End Sub
Private Sub Workbook_Deactivate()
Application.CommandBars("Ply").Enabled = True
End Sub[/VBA]
Thank you very muchOriginally Posted by GTO
I've solved the problem with your code
But you can still access the move/copy sheets item from the ribbon...