Microsoft Knowledge Base |
|
EXCEL: Removing Unbound Sheet with WORKBOOK.MOVE() |
|
|
Last reviewed: September 12, 1996
Article ID: Q110556 |
|
The information in this article applies to:
The Microsoft Excel "Function Reference" version 4.0, states that you can remove a bound sheet from a workbook by using a macro with the WORKBOOK.MOVE() command. You can also remove an unbound sheet with this command, but the procedure is slightly different than the one explained in the reference. To remove an unbound worksheet from a workbook, only the worksheet filename should be specified (in quotation marks) for the name_array argument. However, you must first activate the Workbook Contents screen and select the unbound worksheet before you can remove it. For example:
=WORKBOOK.ACTIVATE(,FALSE)
=WORKBOOK.SELECT("SALES.XLS","SALES.XLS")
=WORKBOOK.MOVE("SALES.XLS")
To remove a bound worksheet from a workbook, specify the workbook name and
the filename (in quotation marks) for the name_array argument:
=WORKBOOK.MOVE("[TEST.XLW]SALES.XLS")
Note that this does not require activation of the Workbook Contents screen
and selection of the worksheet to remove prior to issuing the WORKBOOK.MOVE
command.
REFERENCES"Function Reference," version 4.0, pages 463-463
|
|
KBCategory: kbusage
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |