-----Original Message-----
Hi Alfred,
You can run the following from the Intermediate window in the VBE
Alt+F11 to switch to the VBE
Alt+G to bring up the Intermediate Window (or use view menu in the VBE)
Paste the following into the Intermediate Window and hit Enter:
Application.CommandBars("Cell").Enabled = True
The following macro will do the same and a bit more, particularly useful
if you have a macro go bad.
Sub Fix_Things()
Application.DisplayAlerts = True
Application.CommandBars("Cell").Enabled = True 'rclick cell
Application.CommandBars("PLY").Enabled = True 'rclick ws tab
Application.EnableEvents = True 'should be part of Change macro
If Application.EnableEvents = False Then
MsgBox "EnableEvents was False -- resetting to True"
Application.EnableEvents = True
End If
End Sub
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm
"Alfred" <
[email protected]> wrote in