Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to lock project from viewing
I'm looking for a macro to insert into my project to automatically
password protect and lock a project from viewing instead of manually doing the following: --Going into the VBA Project (view code) --Tools --VBA Project Properties -- Protection Tab --Lock Project for Viewing Can anyone help with this? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to lock project from viewing
There's no property/object in excel that allows you to do this mechanically.
About the best you can do is use SendKeys to show the dialog and choose the options you want. But I wouldn't depend on this working. CH wrote: I'm looking for a macro to insert into my project to automatically password protect and lock a project from viewing instead of manually doing the following: --Going into the VBA Project (view code) --Tools --VBA Project Properties -- Protection Tab --Lock Project for Viewing Can anyone help with this? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 - Lock for viewing | Excel Discussion (Misc queries) | |||
Lock VBProject for Viewing using Code | Excel Programming | |||
Lock Project for Viewing..HELP ME | Excel Programming | |||
Protecting a VBA Project from viewing | Excel Programming | |||
Locking and unlocking a Excel project for viewing | Excel Programming |