Document Templates w/password

F

Fruber Malcome

Is there a way to open a document as a template - that has a password.

For example:
If I open this file using the _thisApplication.Documents.Add() - it does
exactly what I want - but it prompts me for a password, I would like to
supply this behind the scenes.

If I open this file using the _thisApplication.Documents.Open() - it opens
the file without prompting for the password (since I was able to provide
it) - but it doesn't open it as a new document.

I tried:
Word.WdOpenFormat.wdOpenFormatTemplate


but that didn't open it as a new document.

Any ideas?

thanks - Fruber
 
C

Cindy M -WordMVP-

Hi Fruber,
Is there a way to open a document as a template - that has a password.
No, unfortunately. We've been asking for that (parameter for a password) for
years.

Closest might be to open the document, then use SaveAs immediately, so that
you essentially have a "new" document.
For example:
If I open this file using the _thisApplication.Documents.Add() - it does
exactly what I want - but it prompts me for a password, I would like to
supply this behind the scenes.

If I open this file using the _thisApplication.Documents.Open() - it opens
the file without prompting for the password (since I was able to provide
it) - but it doesn't open it as a new document.

I tried:
Word.WdOpenFormat.wdOpenFormatTemplate

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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