Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect Sheet with password through VBA
Is there a way to protect and unprotect (with a password) an Excel 2000 sheet
through VBA? I know the syntax for doing this without a password, but can it be done with a password? Thanks ... Bill Morgan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect Sheet with password through VBA
one way:
Const sPWORD As String = "drowssap" Sheets("Sheet1").Protect Password:=sPWORD Sheets("Sheet1").Unprotect Password:=sPWORD In article , "bill_morgan_3333" wrote: Is there a way to protect and unprotect (with a password) an Excel 2000 sheet through VBA? I know the syntax for doing this without a password, but can it be done with a password? Thanks ... Bill Morgan |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protect Sheet with password through VBA
Perfect. Thank you ...
"JE McGimpsey" wrote: one way: Const sPWORD As String = "drowssap" Sheets("Sheet1").Protect Password:=sPWORD Sheets("Sheet1").Unprotect Password:=sPWORD In article , "bill_morgan_3333" wrote: Is there a way to protect and unprotect (with a password) an Excel 2000 sheet through VBA? I know the syntax for doing this without a password, but can it be done with a password? Thanks ... Bill Morgan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
password protect a sheet | Excel Discussion (Misc queries) | |||
Protect sheet without password? | Excel Discussion (Misc queries) | |||
password protect a single sheet | Excel Discussion (Misc queries) | |||
Password Protect a Sheet | Excel Discussion (Misc queries) | |||
password protect one sheet in within file | Excel Programming |