Removal of Password Protection

M

maneesh

hi

I have written a VB program which converts the doc file
into a txt file.It does it silently. i mean the Visible
property of the word application object is set to false.
The DisplayAlerts property is also set to false.

The Problem :
If a doc file is password protect (modify or Open)a dialog
box pops up and waits for password i do not want this
password to pop up ? how do i convert? is there a way in
which i can do it silently ?
if not i want this dialog boxes to come to front of all
other applications.

regards
maneesh
 
R

Robert S.

I am not sure about unprotecting an entire document, but
when you unprotect just the formfields you simply give
word the password to use.

ex.

ActiveDocument.Unprotect Password:="PaSsWoRd"

If you didn't have a password you would simply use:

ActiveDocument.Unprotect

I hope this helps you find the solution.
 

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