Change Save Location after opening Read-Only File

B

brittonsm

I have made a document that I have changed the attributes to be
Read-Only as well as locking down the document with password protection
as a form. What I am trying to accomplish is having this document
opened by a user (or uploaded in our CAD software then opened) make
some changes and then save the file to a new location.

The probelm I am having is that on the Userform that load on start-up,
the user fills it out and hits OK, then it embeds a document and fills
out a bunch of fields on both the word file and embedded excel file.
Then it get to the line:

ActiveDocument.Save

I get the standard dialog box and create a new file, this file saves in
that location, but then I get a Run-Time Error '5155' saying the
ORIGINAL file is read-only and if I debug the code it takes me to the
ActiveDocument.Save line.

Help?

-Steve
 
C

Charles Kenyon

To reiterate what Jezebel said:

Use a template. Then the user does File > New and picks your template for a
new document. They would have to work very hard to save over the top of the
template!

You are using a hammer when you need a wrench. You are asking us how to make
a better wrench out of the hammer. Use the wrench!
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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