• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 588
  • Last Modified:

How to make MS Word Mail Merge document read only?

We have an application that uses Visual Basic 6, Sql Server 2000 and MS Word. Essentially we mail merge the data from Sql queries in to a Ms Word document.

The issue we are having is that the final MS Word document is writable and users can overwrite on it.
Is there a way to make the MS Word document read only so that users cannot change the data in the document?

Thanks,
Ricky
0
Ricky66
Asked:
Ricky66
1 Solution
 
DotxCommented:
you can set read only checkbox in folder property then all files in this folder will be read-only
0
 
GrahamSkanCommented:
This code will set protection on:


    wrdDoc.Protect wdAllowOnlyReading, , "password"

Open in new window

0
 
Ricky66Author Commented:
Dotx, I tried making the folder read only. With that, I am not able to save the changes but I can still make the changes. I would like to make it much like a pdf document so that users cannot alter the document. Any suggestions?

Graham Skan, I willl give your suggestion a try.

Thanks.



 
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
CodeCruiserCommented:
>I would like to make it much like a pdf document so that users cannot alter the document.
That's not possible with Word.
0
 
Ricky66Author Commented:
Thanks!
0
 
Khalid Mehmood AwanCommented:
thanks ;-)
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now