XL5: GET.WORKBOOK(16) and GET.DOCUMENT(1) Not the Same

Last reviewed: September 12, 1996
Article ID: Q111973
The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

SUMMARY

Microsoft Excel Help states that the GET.WORKBOOK(16) function is equivalent to GET.DOCUMENT(1). This information is incorrect.

The GET.WORKBOOK(16) function returns the name of the active workbook as text (for example, "Book1"). The GET.DOCUMENT(1) function, however, returns the name of the active sheet as text (for example, "[Book1]Sheet1") if there is more than one sheet in the workbook.

MORE INFORMATION

To find the description of the GET.WORKBOOK() function in Microsoft Excel Help, do the following:

  1. From the Help menu, choose Contents.

  2. Select Reference Information.

  3. Under the General Reference section, select Microsoft Excel Macro Functions Contents.

  4. Select Alphabetical List Of Macro Functions and choose GET.WORKBOOK from the list of functions.


KBCategory: kbdocerr
KBSubcategory:

Additional reference words: 5.00 helpfile MACROFUN.HLP



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.