Edit

Share via


_Chart.SaveAs Method

Definition

Saves changes to the chart or worksheet in a different file.

public void SaveAs (string Filename, object FileFormat, object Password, object WriteResPassword, object ReadOnlyRecommended, object CreateBackup, object AddToMru, object TextCodepage, object TextVisualLayout, object Local);
Public Sub SaveAs (Filename As String, Optional FileFormat As Object, Optional Password As Object, Optional WriteResPassword As Object, Optional ReadOnlyRecommended As Object, Optional CreateBackup As Object, Optional AddToMru As Object, Optional TextCodepage As Object, Optional TextVisualLayout As Object, Optional Local As Object)

Parameters

Filename
String

Optional Object. A string that indicates the name of the file to be saved. You can include a full path; if you don't, Microsoft Excel saves the file in the current folder.

FileFormat
Object

Optional Object. The file format to use when you save the file. For a list of valid choices, see the FileFormat property. For an existing file, the default format is the last file format specified; for a new file, the default is the format of the version of Excel being used.

Password
Object

Optional Object. A case-sensitive string (no more than 15 characters) that indicates the protection password to be given to the file.

WriteResPassword
Object

Optional Object. A string that indicates the write-reservation password for this file. If a file is saved with the password and the password isn't supplied when the file is opened, the file is opened as read-only.

ReadOnlyRecommended
Object

Optional Object. True to display a message when the file is opened, recommending that the file be opened as read-only.

CreateBackup
Object

Optional Object. True to create a backup file.

AddToMru
Object

Optional Object. True to add this workbook to the list of recently used files. The default value is False.

TextCodepage
Object

Optional Object. Not used in U.S. English Microsoft Excel.

TextVisualLayout
Object

Optional Object. Not used in U.S. English Microsoft Excel.

Local
Object

Optional Object. True saves files against the language of Microsoft Excel (including control panel settings). False (default) saves files against the language of Visual Basic for Applications (which is typically U.S. English unless the VBA project where Workbooks.Open is run from is an old internationalized XL5/95 VBA project).

Applies to