Share via


SaveAs Method

Saves a file that is not the active project under a new file name.

Syntax

expression**.SaveAs(Name, Format, Backup, ReadOnly, TaskInformation, Filtered, Table, UserID, DatabasePassword, FormatID, Map, ClearBaseline, ClearActuals, ClearResourceRates, ClearFixedCosts)**

*expression   *     Optional. An expression that returns a Project object.

Name    Optional String. The name of the file to save as. If Name is omitted, Project prompts for the file name.

PjFileFormat

Constant
pjMPP
pjMPT
pjCSV
pjTXT
pjXLS

Backup    Optional Boolean. True if Project makes a backup copy of the file.

ReadOnly    Optional Boolean. True if Project should display an alert recommending that the project be opened read-only. The default value is False.

TaskInformation    Optional Boolean. True if task information is saved, for a project saved under a non-Project file format. False if resource information is saved. If Map is specified, TaskInformation is ignored. The default value is True if the active view is a task view and False otherwise.

Filtered    Optional Boolean. True if filtered tasks or resources are saved, for a project saved under a non-Project file format. False if all the tasks or resources are saved. If Map is specified, Filtered is ignored. The default value is False.

Table    Optional String. The name of the table containing the task or resource information, for a project saved under a non-Project format. If Map is specified, or Name specifies a database file or format, Table is ignored. The default value is the name of the active table.

UserID    Optional String. A user ID to use when accessing a database. If Format or FormatID is not a database, UserIDis ignored.

DatabasePassWord    Optional String. A password to use when accessing a database. If Format or FormatIDisn't a database, DatabasePassWord is ignored.

FormatID    Optional String. The file or database format to use. Can be one of the following format strings:

Map    Optional String. The name of the import/export map to use when exporting data.

Password    Optional String. A password to use when helping protect project files. The password is case-sensitive and may not be more than 15 characters long.

WriteResPassword    Optional String. A password to use when write-reserving a project file. The password is case-sensitive and may not be more than 15 characters long.

ClearBaseline    Optional Boolean. True if baseline values (the Baseline Cost, Baseline Work, Baseline Start, Baseline Finish, Baseline Duration, Timephased Baseline Work and Timephased Baseline Cost fields) are cleared when saving as a template. The default value is False.

ClearActuals    Optional Boolean. True if actual values (the % Complete field and, if actual costs are not calculated by Project, the Actual Cost field) are cleared when saving as a template. The default value is False.

ClearResourceRates    Optional Boolean. True if resource rate tables are cleared when saving as a template. The default value is False.

ClearFixedCosts    Optional Boolean. True if the Fixed Costs field is cleared for all tasks when saving as a template. The default value is False.

Remarks

Use the FileSaveAs method to save the active project or to save the active project as XML.

Applies to | Project Object, Projects Collection Object

See Also | FileSaveAs Method