In Excel 2003, I had a macro that disabled the delete sheet command. I've recently upgraded to Excel 2010 and the old macro doesn't work any more.
Application.CommandBars("Worksheet Menu Bar").Controls("Edit") _
.Controls("Delete Sheet").Enabled = False
Any suggestions on how to do this in Excel 2010?
I'd also like to disable the rename command.
In fact, I'd like to disable the right-click menu on the sheet tab too.
Bookmarks