Group:  Microsoft Word ยป microsoft.public.word.vba.addins
Thread: unprotect document macro

Geek News

unprotect document macro
"jjuan" <jp4the_clan[ at ]yahoo.com> 4/18/2007 5:20:58 AM
I forgot the password of my word document, so i cannot unprotect to edit it.
Anybody have a macro that Unproctect Document?


RE: unprotect document macro
Brian 4/18/2007 8:16:03 AM
Hello jjuan,

Try:

Sub Test()
If ActiveDocument.ProtectionType <> wdNoProtection Then
ActiveDocument.Unprotect
End If
End Sub

Hope it helps,

--
Brian McCaffery


"jjuan" wrote:

[Quoted Text]
> I forgot the password of my word document, so i cannot unprotect to edit it.
> Anybody have a macro that Unproctect Document?
>
>
>
Re: unprotect document macro
"Terry Farrell" <terryfarrell[ at ]msn.com> 4/18/2007 8:28:01 AM
If it is only Protected, then open a blank document and use Insert, File.
That will open the protected document into the new blank without protection.

--
Terry Farrell - MS Word MVP

"jjuan" <jp4the_clan[ at ]yahoo.com> wrote in message
news:Oj1P5kXgHHA.596[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
>I forgot the password of my word document, so i cannot unprotect to edit
>it.
> Anybody have a macro that Unproctect Document?
>

RE: unprotect document macro
dev 4/18/2007 12:18:00 PM
hi, I've tryed your code on OTD file protected, but It can't access to the
storage macro. Have you any solution for open an OTD protected file?

thank u!

"Brian" wrote:

[Quoted Text]
> Hello jjuan,
>
> Try:
>
> Sub Test()
> If ActiveDocument.ProtectionType <> wdNoProtection Then
> ActiveDocument.Unprotect
> End If
> End Sub
>
> Hope it helps,
>
> --
> Brian McCaffery
>
>
> "jjuan" wrote:
>
> > I forgot the password of my word document, so i cannot unprotect to edit it.
> > Anybody have a macro that Unproctect Document?
> >
> >
> >

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net