Application.OptionsSave method (Project)

Sets save options for project files.

Syntax

expression. OptionsSave( _DefaultSaveFormat_, _DefaultProjectsPath_, _DefaultUserTemplatesPath_, _DefaultWorkgroupTemplatesPath_, _ExpandDatabaseTimephasedData_, _AutomaticSave_, _AutomaticSaveInterval_, _AutomaticSaveOptions_, _AutomaticSavePrompt_, _SetDefaultsDatabase_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
DefaultSaveFormat Optional String Specifies the default format when saving a file. Can be one of the following strings: "MSProject.mpp", "MSProject.mpt", "MSProject.mpp12", or "MSProject.mpp9".
DefaultProjectsPath Optional String Specifies the default location for project files.
DefaultUserTemplatesPath Optional String Specifies the default location for user templates.
DefaultWorkgroupTemplatesPath Optional String Specifies the default location for workgroup templates.
ExpandDatabaseTimephasedData Optional Boolean True if timephased data should be expanded to a readable format when saving to a database. False if timephased data should remain in a compressed binary format. The default value is False.
AutomaticSave Optional Boolean True if Project automatically saves files.
AutomaticSaveInterval Optional Long Specifies how often (in minutes) Project automatically saves.
AutomaticSaveOptions Optional Long Specifies whether Project saves only the active file or all changed files. Can be one of the following PjAutomaticSaveOptions constants.
AutomaticSavePrompt Optional Boolean True if alerts display when automatically saving files.
SetDefaultsDatabase Optional Boolean True if the value specified in the Database save options section, found on the Save tab of the Options dialog box, is used as the default value for new projects. The default value is False.

Return value

Boolean

Remarks

If an argument is omitted, the default value is specified by the corresponding setting on the Save tab of the Project Options dialog box.

Using the OptionsSave method without specifying any arguments displays the Project Options dialog box with the General tab selected.

Example

The following example turns off the automatic saving feature.

Sub Options_Save() 
    OptionsSave AutomaticSave:=False 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.