How do you automate password protection on a Word Document
from Visual Basic?

Re: Automating Password protection by JGM

JGM
Wed Dec 03 12:23:27 CST 2003

Hi John,

What kind of password?
For opening the document, for modifying it or for form protection?

Also, do you want to generate a password when creating a document through
VB, or automatically open a protected document with a given password when
opening it from a VB app?

Cheers!

--
_______________________________________
Jean-Guy Marcil
jmarcil@sympatico.ca

"John" <anonymous@discussions.microsoft.com> a écrit dans le message de
news: 008801c3b9bc$c694b310$a301280a@phx.gbl...
> How do you automate password protection on a Word Document
> from Visual Basic?
>



Re: Automating Password protection by anonymous

anonymous
Wed Dec 03 13:10:52 CST 2003

Sorry I was vague.

I want it to track changes with a password so the people I=20
send the document to cannot change it without me knowing.

The document is not protected as of now.=20

What I did was open up a mail merge document, merge it and=20
create a new document. And I want to track the changes on=20
the new document.

Thanks!
>-----Original Message-----
>Hi John,
>
>What kind of password?
>For opening the document, for modifying it or for form=20
protection?
>
>Also, do you want to generate a password when creating a=20
document through
>VB, or automatically open a protected document with a=20
given password when
>opening it from a VB app?
>
>Cheers!
>
>--
>_______________________________________
>Jean-Guy Marcil
>jmarcil@sympatico.ca
>
>"John" <anonymous@discussions.microsoft.com> a =E9crit dans=20
le message de
>news: 008801c3b9bc$c694b310$a301280a@phx.gbl...
>> How do you automate password protection on a Word=20
Document
>> from Visual Basic?
>>
>
>
>.
>

Re: Automating Password protection by JGM

JGM
Wed Dec 03 14:37:02 CST 2003

Hi John,

Use something like:

'To turn on Track changes
ActiveDocument.TrackRevisions = True
'To set the password against revision
ActiveDocument.Protect Password:="123", NoReset:=True, Type:= _
wdAllowOnlyRevisions

HTH
Cheers!
--
_______________________________________
Jean-Guy Marcil
jmarcil@sympatico.ca

<anonymous@discussions.microsoft.com> a écrit dans le message de news:
034401c3b9d1$2b6468d0$a101280a@phx.gbl...
Sorry I was vague.

I want it to track changes with a password so the people I
send the document to cannot change it without me knowing.

The document is not protected as of now.

What I did was open up a mail merge document, merge it and
create a new document. And I want to track the changes on
the new document.

Thanks!
>-----Original Message-----
>Hi John,
>
>What kind of password?
>For opening the document, for modifying it or for form
protection?
>
>Also, do you want to generate a password when creating a
document through
>VB, or automatically open a protected document with a
given password when
>opening it from a VB app?
>
>Cheers!
>
>--
>_______________________________________
>Jean-Guy Marcil
>jmarcil@sympatico.ca
>
>"John" <anonymous@discussions.microsoft.com> a écrit dans
le message de
>news: 008801c3b9bc$c694b310$a301280a@phx.gbl...
>> How do you automate password protection on a Word
Document
>> from Visual Basic?
>>
>
>
>.
>