How to make MS Word Mail Merge document read only?

Posted on 2010-01-08
Last Modified: 2013-11-26
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?

Question by:Ricky66

    Expert Comment

    you can set read only checkbox in folder property then all files in this folder will be read-only
    LVL 76

    Expert Comment

    This code will set protection on:

        wrdDoc.Protect wdAllowOnlyReading, , "password"

    Open in new window


    Author Comment

    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.


    LVL 5

    Accepted Solution

    LVL 83

    Expert Comment

    >I would like to make it much like a pdf document so that users cannot alter the document.
    That's not possible with Word.

    Author Closing Comment

    LVL 5

    Expert Comment

    by:Khalid Mehmood Awan
    thanks ;-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
    Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
    This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
    Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now