Microsoft Knowledge Base |
|
XL: A Description of the Sheets and Worksheets Objects |
|
|
Last reviewed: June 13, 1997
Article ID: Q141291 |
|
The information in this article applies to:
SUMMARYIn Microsoft Excel, you can specify the difference in Sheets and Worksheets object collections when you write Visual Basic for Applications code.
MORE INFORMATIONThe Sheets collection object is a collection of sheets in a workbook. The Sheets collection can contain Worksheet, Chart, Module, and DialogSheet objects. The Worksheets collection object is made up of worksheets in a workbook. A worksheet can be a Microsoft Excel 5.x or 4.x worksheet. By referencing the Sheets object collection, you reference every sheet in the specified or active workbook by its assigned name or index number. In contrast, when you refer to the Worksheets object collection, you reference only worksheets and macro sheets. To test the difference between the Sheets and Worksheets object collections, use the following steps:
REFERENCESMicrosoft Press: "Microsoft Excel for Visual Basic Reference," Second Edition, pages 701-702, 863-864. For more information about Worksheets Object, click the Answer Wizard tab in Microsoft Excel 7.0 Help and type:
What is a Worksheets Object? |
|
Additional query words: 5.00 5.00a 5.00c 7.00
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |