Solved

Disable saving of Word Document

Posted on 2004-04-02
10
6,674 Views
Last Modified: 2007-12-19
How do you disable saving of a Microsoft Word Document.  I have a document that I want be able to read and write to but I don't want anyone to be able to save over that document.


0
Comment
Question by:aedean
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10745594
One way is to find where it is located on the disk and right click on it and make sure the box marked read only is checked.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10745601
From words help

Prompt to open a file as read-only
You can suggest, but not require, that users open a document as read-only. If a user opens the document as read-only and changes it, that person can save the document only by giving it a different file name.

On the Tools menu, click Options.
Click Security.
Select the Read-only recommended check box, and then click OK.
Click Save.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10745604
Prompt to open a file as read-only
You can suggest, but not require, that users open a document as read-only. If a user opens the document as read-only and changes it, that person can save the document only by giving it a different file name.

On the Tools menu, click Options.
Click Security.
Select the Read-only recommended check box, and then click OK.
Click Save.
0
Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

 
LVL 17

Accepted Solution

by:
Suat Ozgur earned 500 total points
ID: 10752572
We can restrict application to save that document by catching the application's documentbeforesave event if it is a document that you can (or would like to)  use VBA. First we need the Word Application object events that is not available as default so we create the wApp object in Document_Open event of our document (wApp is the object that we declared by using Withevents keyword to get its events into our class module, see the code please).

Open your document, goto VBA (Alt+F11), see project explorer (Ctrl+R) and double click on the Thisdocument object under Microsoft Word Objects of your document in project explorer. And copy and paste the following code into the module opened at right pane.

'-----Code Start----
Dim WithEvents wApp As Application

Private Sub Document_Open()
    Set wApp = Application
End Sub

Private Sub wApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
    'If the document that is being saved is our document (verifying name) then cancel the save operation
    If Doc.Name = ThisDocument.Name Then Cancel = True
End Sub
'----Code End-----

I hope this helps.
Suat
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 10758502
Why not just save the document as a template?  Then they can do File/New and access it.  
0
 
LVL 7

Expert Comment

by:rosesolutions1
ID: 10804502
Are you sure you want to allow other people to save changes to the file?
The built in Word mechanism that most closely resembles what you have asked is to apply a password for modifying the file (Tools/Options/Security tab).
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 10817890
Why would anyone take the time to open a document, revise it (write to it) and then not be able to save it.  It doesn't make sense.  If you want the document available for use by others with the original to remain intact, again, save it as a template and make it available under file/new.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 10849050
Templates are nice but may not meet the current requirements that aedean is asking for. Sometimes there is more than meets the eye.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

738 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