Saves a component or project to a given location using a new filename.
Syntax
object.SaveAs (newfilename As String)
The SaveAs method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
newfilename | Required. 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.
When a form is saved, newfilename specifies the new name of the form file itself. The .Frx file, if applicable, is saved automatically with an .Frx extension.
Note Successfully invoking this method causes the associated events from the FileControl object to be invoked.