April 2006
Beginner
1114 pages
98h 16m
English
workbook.SaveCopyAs([Filename])
Saves a copy of the workbook without changing the name of the open workbook.
|
Argument |
Settings |
|---|---|
|
|
The filename with which to save the copy |
Although Filename is optional, CopyAs may fail if it tries to use the current filename to save to the current folder since the source workbook may be open. It is a good idea to supply a filename to avoid this problem.
The following code saves a copy of the current workbook, giving it a new name without changing the name of the current workbook:
ThisWorkbook.SaveCopyAs "Copy of " & ThisWorkbook.Name
Read now
Unlock full access