Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
'If document is protected, Unprotect it.
If ActiveDocument.ProtectionType < wdNoProtection Then ActiveDocument.Unprotect Password:="" End If 'ReProtect the document. If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _ NoReset:=True End If One unprotects then one protects "VJ" wrote: Is there any way, I can unprotect a excel workbook using vba macro. Thanx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot unprotect workbook with an Excel crash | Excel Discussion (Misc queries) | |||
Unprotect workbook/worksheet Excel 2007 | Excel Discussion (Misc queries) | |||
I've forgotten the password to unprotect a workbook in Excel. | Excel Worksheet Functions | |||
How to unprotect a workbook by macro? | Excel Discussion (Misc queries) | |||
Macro to unprotect workbook | Excel Programming |