Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a Word Document Read-only from VBA 1

Status
Not open for further replies.

Cloonalt

Programmer
Jan 4, 2003
354
US
I combine multiple Word documents into one from my front end. The document will launch and the user will make edits.

I've been asked to then save that final Word document as read-only.

I can't see a way to do that from Word (well, it looks convoluted and involves passwords, which they don't want), and they don't really want to rely on the user to save ut as read only anyway.

Does anyone have an idea how I might achieve this? Save it as read only from a button click?

I then have to point to this Word doc from a hyperlink in an e-mail. I've got the email process pretty much set, but can I do it at this point?

Any ideas are appreciated.

Thanks.

 
Cloonalt,
It sounds like you want to change the file attrtibute:
Code:
SetAttr "YourFileName.doc", vbReadOnly

Hope this helps,
CMP

(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top