WD98: Auto Macro to Turn Off Allow Fast Saves at Startup (190667)



The information in this article applies to:

  • Microsoft Word 98 Macintosh Edition

This article was previously published under Q190667

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following Visual Basic for Applications macro, when named AutoExec, will turn off AllowFastSave and then delete the module containing the AutoExec macro. This macro can be distributed to workstations within the Normal template to run the first time Word is started.

NOTE: Application.OrganizerDelete will delete all macros in the module specified. Microsoft recommends that a clean Normal template be used with a module called "Module1" instead of the "NewMacros" module.

The example code included below contains a MessageBox that informs the user that the administrator has turned off "Allow Fast Saves," and that Word should be quit and restarted. This message is to inform users so that they do not call an internal helpdesk or Microsoft Technical Support.
   Sub AutoExec()

      Dim strLn1 As String
      Dim strLn2 As String
      Dim strLn3 As String
      Dim strLn4 As String

      strLn1 = "From System Administrator:  We have just turned off "
      strLn2 = "Allow Fast Saves. Once you have clicked 'Start Using "
      strLn3 = "Microsoft Word' on the Assistants Welcome balloon, please "
      strLn4 = "quit and restart Word to save this setting."
      With Options
         .AllowFastSave = False
      End With
      ' Delete the specified module from the Normal template.
      Application.OrganizerDelete NormalTemplate.Name, "module1", _
         wdOrganizerObjectProjectItems
      ' Display the message from the system administrator.
      MsgBox strLn1 + strLn2 + strLn3 + strLn4
   End Sub
				

SUMMARY

This article describes how to create a macro to automatically turn off the "Allow Fast Saves" option at startup in Microsoft Word 98 Macintosh Edition.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

181058 OFF98: How to Run Sample Code from Knowledge Base Articles


Modification Type:MajorLast Reviewed:6/17/2005
Keywords:kbhowto KB190667