?
Solved

Command to ignore/disable save command in Word (2003)

Posted on 2008-06-11
4
Medium Priority
?
540 Views
Last Modified: 2012-06-27
I want to be able to run macro that will prevent the save option being available in word (2003) - until I enable it again.

Is there an "on save " event or something similar?

Or another method?

Thanks Lou
0
Comment
Question by:Louverril
[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
  • 2
4 Comments
 
LVL 3

Expert Comment

by:NizzeK
ID: 21769676
Hi!
Is it not enough to create a password for not read-only access (tools/options/security)?
This will guide in disabling the menu item:
http://office.microsoft.com/en-us/ork2000/HA011380601033.aspx

Best regards
Nils
0
 

Author Comment

by:Louverril
ID: 21794471
Hello Nizzek,

No this is not sufficient as the document is a form ans I want to disable save if all the fields have not been completed. If they have I want save to be available.

Thanks Lou
0
 
LVL 19

Accepted Solution

by:
dlc110161 earned 2000 total points
ID: 21795713
The problem that you will have is that there are many Save events available and you will have to hijack all of them.

FileSave
FileSaveAll
FileSaveAs
FileSaveAsOtherFormats
FileSaveAsWebPage
etc.

Dawn Crosier-Bleuel
Word MVP

Sub FileSaveAs()
 
If ActiveDocument.FormFields("txtUserName").Result = "" Then
    Exit Sub
Else
    Application.Dialogs(wdDialogFileSaveAs).Show
End If
End Sub

Open in new window

0
 

Author Closing Comment

by:Louverril
ID: 31466223
Brilliant just what I need.
Thank you thank you thank you!!!!!!

Lou
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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 …
Suggested Courses

741 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