disable Menu/toolbar items

G

Guest

How do I disable Menu / toolbar items when opening a workbook and enable them
when I close the workbook. Doing this to force the user to use the macro's I
have written.
 
G

Guest

Application.CommandBars("Tools").Enabled = False

The above placed in the workbook open event will disable the Tools menu.

Application.CommandBars("Tools").Enabled = true

And this placed in the before-close event will re-enable it.

You could in this way disable others by changing Tools to Format for example
but it seems a bit drastic to me.
 
G

Guest

Hi Mike,

I basically want to disable the print function in the toolbar as well as the
menu and the save / save as buttons.
I did this years ago and just can't rember how to do it again. Do I create a
open event SUB and give the command?

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top