Solved

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

Posted on 2008-06-11
4
535 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
  • 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

864 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

18 Experts available now in Live!

Get 1:1 Help Now