Macro to Open or Activate a Sheet in Microsoft ExcelLast reviewed: September 2, 1997Article ID: Q74694 |
The information in this article applies to:
SUMMARYWhen you activate a worksheet from a macro, the worksheet must first be opened. You will receive a "Macro Error at Cell: xx" if the sheet is closed. The following macro will activate SHEET1.XLS if it is already open, or it will open and activate SHEET1.XLS if the sheet is closed.
MORE INFORMATIONMicrosoft provides macro examples for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This macro is provided 'as is' and Microsoft does not guarantee that the following code can be used in all situations. Microsoft does not support modifications of the code to suit customer requirements for a particular purpose.
ARTICLE-ID: Q135390 TITLE : XL: VB for Apps Procedure to Open or Activate a Workbook REFERENCES"Microsoft Excel Function Reference," version 4.0, pages 135, 225, and 24 "Microsoft Excel Function Reference," version 3.0, pages 68, 125, and 135 "Microsoft Excel Functions and Macros," version 2.1, pages 57, 65-66, 274
|
Additional query words: 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 3.00 4.0
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |