Table of contents
TOC
Collapse the table of content
Expand the table of content

SaveAs Method (VBA Add-In Object Model)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Saves a project to a given location using a new filename. Syntaxobject.SaveAs(newfilenameAs String) The SaveAs method syntax has these parts:

PartDescription
objectAn object expression that evaluates to an object in the Applies To list.
newfilenameRequired. A string expression specifying the new filename for the component to be saved.

Remarks If a new path name is given, it is used. Otherwise, the old path name is used. If the new filename is invalid or refers to a read-only file, an error occurs. The SaveAs method can only be used on standalone projects. It generates a run-time error if you use it with a host project.

© 2018 Microsoft