Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers,microsoft.public.word.vba.addins
jjuan jjuan is offline
external usenet poster
 
Posts: 2
Default unprotect document macro

I forgot the password of my word document, so i cannot unprotect to edit it.
Anybody have a macro that Unproctect Document?


  #2   Report Post  
Posted to microsoft.public.word.newusers,microsoft.public.word.vba.addins
Brian Brian is offline
external usenet poster
 
Posts: 298
Default unprotect document macro

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?



  #3   Report Post  
Posted to microsoft.public.word.newusers,microsoft.public.word.vba.addins
Terry Farrell Terry Farrell is offline
external usenet poster
 
Posts: 2,904
Default unprotect document macro

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" wrote in message
...
I forgot the password of my word document, so i cannot unprotect to edit
it.
Anybody have a macro that Unproctect Document?


  #4   Report Post  
Posted to microsoft.public.word.newusers,microsoft.public.word.vba.addins
dev dev is offline
external usenet poster
 
Posts: 6
Default unprotect document macro

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:

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?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Unprotect Document Schoolguy Microsoft Word Help 6 May 2nd 06 07:27 PM
macro to unprotect / protect sheet in word Markc Microsoft Word Help 3 March 23rd 06 02:32 PM
macro doesn't work when I unprotect form mary Formatting Long Documents 1 May 3rd 05 07:35 PM
How do I unprotect a document if I can't press the unprotect butt. ogrundmann Microsoft Word Help 4 February 15th 05 09:31 AM
unprotect document option is grayed out - cannot unprotect? Jon R Microsoft Word Help 2 February 11th 05 10:46 AM


All times are GMT +1. The time now is 03:24 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"