ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Stop users from accessing "Protection" option from "Tools" menu (https://www.excelbanter.com/excel-programming/348406-stop-users-accessing-protection-option-tools-menu.html)

I Believe

Stop users from accessing "Protection" option from "Tools" menu
 
Hi everyone,
I was wondering how I might hide the "Protection" option from the "Tools"
menu?

TIA! have a nice day ;)

Chip Pearson

Stop users from accessing "Protection" option from "Tools" menu
 
Try

Application.CommandBars.FindControl(ID:=30029).Vis ible = False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"I Believe" wrote in message
...
Hi everyone,
I was wondering how I might hide the "Protection" option from
the "Tools"
menu?

TIA! have a nice day ;)




I Believe

Stop users from accessing "Protection" option from "Tools" men
 
Thanks Chip, exactly what I wanted, but I've modified to:

Application.CommandBars.FindControl(ID:=30029).Ena ble = False

because I think this will be more transparant to my users about whats going
on.

Cheers.

"Chip Pearson" wrote:

Try

Application.CommandBars.FindControl(ID:=30029).Vis ible = False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"I Believe" wrote in message
...
Hi everyone,
I was wondering how I might hide the "Protection" option from
the "Tools"
menu?

TIA! have a nice day ;)






All times are GMT +1. The time now is 04:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com