OptionsSave Method

Sets save options.

Syntax

expression**.OptionsSave(DefaultSaveFormat, DefaultProjectsPath, DefaultUserTemplatesPath, DefaultWorkgroupTemplatesPath, ExpandDatabaseTimephasedData, AutomaticSave, AutomaticSaveInterval, AutomaticSaveOptions, AutomaticSavePrompt, SetDefaultsDatabase)**

*expression   *     Optional. An expression that returns an Application object.

DefaultSaveFormat    Optional String. Specifies the default format when saving a file. Can be one of the following strings: "MSProject.mpp", "MSProject.mpt", "MSProject.mpd", or "MSProject.mdb9".

DefaultProjectsPath    Optional String. Specifies the default location for Microsoft Office Project 2003 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 if Project saves only the active file or all changed files. Can be one of the following PjAutomaticSaveOptions constants: pjAutomaticSaveActiveProjectfileOnly or pjAutomaticSaveAllOpenProjectfiles.

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.

Remarks

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

Using the OptionsSave method without specifying any arguments brings up the Options dialog box with the Save tab selected.

Applies to | Application Object

See Also | OptionsCalculation Method | OptionsCalendar Method | OptionsEdit Method | OptionsGeneral Method | OptionsSchedule Method | OptionsSpelling Method | OptionsView Method | OptionsWorkgroup Method