Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following code in a module: Sub ProtectWorkbook() ThisWorkbook.Protect Structu=True, Windows:=False, password:="xxxx" End Sub When I run this, the workbook remains unprotected. I am using Excel 2007. Am I doing anything wrong? (I tried running through the code using F8. It runs but the workbook remains unprotected). Thanks in advance for the help. Regards, Raj |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jul 2, 9:09*am, Raj wrote:
Hi, I have the following code in a module: Sub ProtectWorkbook() ThisWorkbook.Protect Structu=True, Windows:=False, password:="xxxx" End Sub When I run this, the workbook remains unprotected. I am using Excel 2007. Am I doing anything wrong? (I tried running through the code using F8. It runs but the workbook remains unprotected). Thanks in advance for the help. Regards, Raj Hi, I was wrong. The workbook is indeed protected. The confusion arose because when the worksheet is protected, the icon under Review Tab, becomes "Unprotect Worksheet", whereas it remains the same viz. "Protect Workbook" in case of a Workbook. I was wrongly assuming that the workbook was not protected going by this icon. Regards, Raj |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 sheet and workbook protection | Excel Worksheet Functions | |||
How secure is Excel 2007 worksheet protection? | Excel Discussion (Misc queries) | |||
Password protection not working in Excel 2007 | Setting up and Configuration of Excel | |||
Excel File Protection 2003 vs. 2007 | Excel Discussion (Misc queries) | |||
Excel 2007 workbook problem | Excel Discussion (Misc queries) |