Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Tools, Protect, Protect Workbook
Within a macro I am using
..CommandBars("Tools").Controls("Protection").Enab led = False However this disables the entire Tools, Protection menu item. I only want to disable Tools, Protection, Protect Workbook, This because the workbook is password protected by macro when it is closed and a user, users password protecting the workbook mid session is causing problems. Users need access to Tools Protection Unprotect Sheet during session. Many Thanks Paul Moles |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Disable Tools, Protect, Protect Workbook
Try this Paul
Application.CommandBars("Worksheet Menu Bar").FindControl _ (ID:=894, Recursive:=True).Enabled = False More info you can find here http://www.rondebruin.com/menuid.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Paul Moles" wrote in message ... Within a macro I am using .CommandBars("Tools").Controls("Protection").Enabl ed = False However this disables the entire Tools, Protection menu item. I only want to disable Tools, Protection, Protect Workbook, This because the workbook is password protected by macro when it is closed and a user, users password protecting the workbook mid session is causing problems. Users need access to Tools Protection Unprotect Sheet during session. Many Thanks Paul Moles |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can protect worksheet then workbook but not Protect and Share in code | Excel Programming | |||
Protect Workbook Vs Protect Sheet | New Users to Excel | |||
Disable Tools Protection Protect Sheet for all users but one | Excel Discussion (Misc queries) | |||
No password protect workbook box in Tools>Options>General | Excel Discussion (Misc queries) | |||
Disable/Protect Cells based on If | Excel Programming |