Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deactivated worksheet right click menu - cannot reactivate!

Status
Not open for further replies.

monkski

MIS
Jul 22, 2003
6
GB
I was trying to deactivate the right click menu on my worksheet tabs in excel 2003, which i did as per thread


using the following line of code;

CommandBars("ply").Enabled = False

which worked fine - problem is it decativated the tabs in all worksheets in any file that i open in excel. So I deleted the code, but the setting remained - so i then set the value to true and my worksheet tabs are still decativated in any workbook i open.

please help!
Thanks
 
Just enable this commandbar:

CommandBars("ply").Enabled = True

combo
 
Thats what i tried after deleting the code, but it has not reactivated the menu.

I tried rebooting etc. just in case, and it remains deactivated in any excel file I open.


 
I believe maybe I am not putting the code in the correct place - although I have tried within worksheet objects and modules

- could anyone advise where it should sit?
thanks
 
In Visual Basic Editor display 'Immediate Window' (View > Immediate Window), copy the code, go to end of line and press enter. It can also be added to any procedure and executed. If it does not work, maybe the commandbar is disabled in one of auto macros, in a workbook or installed add-in.
However, the menu should be enabled for some time after executing this line of code.

combo
 
Thanks very much for your help - that worked.
I reran the macro (there is only one in this workbook) and it didnt turn the menus back off, so Im still not entirely sure why the problem arose.

thanks for your help.
 
In the VB Editor, open the Immediate window then type the following in and press the Enter key:
Code:
CommandBars("ply").Enabled = True
This should restore normal functionality.

Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top