Command Bar Tools, Protection Protect & Share ID

P

Paul Moles

Many thanks to Ron De Bruin who provided

Application.CommandBars("Worksheet Menu Bar").FindControl _
(ID:=894, Recursive:=True).Enabled = False

this to disable Tools, Protection , Protect Workbook

Anyone tell me the ID for Tools, Protection, Protect & Share Workbook or
where I can find it.

Many Thanks

Paul Moles
 
R

Ron de Bruin

Hi Paul

You can find it like this

MsgBox Application.CommandBars("Worksheet Menu Bar").Controls("Tools").Controls("Protection").Controls("Protect And Share
Workbook...").ID
3059

Application.CommandBars("Worksheet Menu Bar").FindControl _
(ID:=3059, Recursive:=True).Enabled = False

You can find information on this page also
http://www.rondebruin.com/menuid.htm
 
R

Ron de Bruin

Hi Paul

There are a few links to MS kb's on the bottom of the page
I believe you can find the example there

I will look at it also and maybe update the Site if there is no example.
 
R

Ron de Bruin

Hi Paul

Yes this is a good site
I have add a extra link to this add-in on my site
 

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