Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Locking and unlocking a workbook
I have a spreadshhet called Finance that I want to lock
and unlock using a button, what is the syntac for locking and unlocking a workbook using code Thanks Nigel |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Locking and unlocking a workbook
workbooks("Myworkbook.xls").Protect Password:="ABCD"
workbooks("Myworkbook.xls").Worksheets(1).Protect Password:="ABCD" replace Protect with Unprotect to unlock them. See help for options that can be used with the commands. You can also protect at the file level - see the workbook SAVEAS command for options. Workbooks("Myworkbook.xls").SaveAs -- Regards, Tom Ogilvy "Nigel Bennett" wrote in message ... I have a spreadshhet called Finance that I want to lock and unlock using a button, what is the syntac for locking and unlocking a workbook using code Thanks Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Locking/Unlocking based on another cell value | Excel Worksheet Functions | |||
locking and unlocking worksheets | Excel Worksheet Functions | |||
Locking/Unlocking cells upon condition | Excel Discussion (Misc queries) | |||
Locking/unlocking cells | Excel Programming | |||
Locking/Unlocking a VBA Project in 2000 vs '97 - Difference? | Excel Programming |