Enter password in a protected document

M

Miskacee

I am trying to locate code that, when clicking on a button, will
automatically enter the password for a protected form. Does anyone have any
suggestions on the code?

Thank you.
 
G

Graham Mayor

What would be the point of putting a password on the form if there was a
button on it to automatically enter the password?
You might as well not bother with the password.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Default User

If unprotecting the documetn is what you're after, how about
ActiveDocument.Unprotect "MyPassWord"

If not, you'll have to rephrase the question.
Krgrds,
Perry
 
M

Miskacee

We need a password on the document when sending it out to the field. When
retrieving the information back, which will be imported into Access, it would
be nice to unprotect the document automatically prior to clicking a button to
import the information from within the document.
 
M

Miskacee

Thank you, I'll try that.

Default User said:
If unprotecting the documetn is what you're after, how about
ActiveDocument.Unprotect "MyPassWord"

If not, you'll have to rephrase the question.
Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top