OK - I have be playing around with this but not working as expected.
On the workbook OPEN
Application.CommandBars(2).Enabled = False
Application.CommandBars(3).Enabled = False
Application.CommandBars(4).Enabled = False
On workbook CLOSE
Application.CommandBars(2).Enabled = True
Application.CommandBars(3).Enabled = True
Application.CommandBars(4).Enabled = True
They do not seem to be working on the same tool bars
EDIT:
Tried this also
[code]
Application.CommandBars("Standard").Enabled = False
Application.CommandBars("Formating").Enabled = False
[\code]
What am I getting wrong?
Bookmarks