Name
workbook
.SaveAs([Filename
], [FileFormat
], [Password
], [WriteResPassword
], [ReadOnlyRecommended
], [CreateBackup
], [AccessMode
], [ConflictResolution
], [AddToMru
], [TextCodepage
], [TextVisualLayout
], [Local
])
Synopsis
Saves the workbook and sets the workbook’s file properties.
Argument |
Settings |
---|---|
|
The name of the file to save. Default is current filename. |
|
One of the following |
|
A password the user must enter to open the file. |
|
A password the user must enter to open the file for read/write access. |
|
True causes Excel to display a dialog box recommending the file be opened for read-only access when the user opens the file; False does not display the dialog box. Default is False. |
|
True creates a backup version of the file when the file is saved; False does not create a backup. Default is False. |
|
One of the following |
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.