The information in this article applies to:
SYMPTOMS
Microsoft Excel requires a worksheet name for the first argument in the
WORKBOOK.ADD() function. If you use this macro function without the first
argument, you receive a macro error when you run the macro that contains
this function.
CAUSE
You can use the WORKBOOK.ADD function to add one or more documents to a
workbook in Microsoft Excel version 4.0. If the worksheet argument is left
out in most functions, the active sheet is assumed. This is not the case
for the WORKBOOK.ADD function.
WORKAROUNDSMicrosoft Excel version 5.0To avoid receiving a GP fault in Microsoft Excel version 5.0, use either of the following methods:
Microsoft Excel version 4.0To avoid receiving a macro error in Microsoft Excel version 4.0, use GET.DOCUMENT(1) for the first argument. This returns the name of the active sheet.REFERENCES"Function Reference," version 4.0, page 461 Additional query words: 4.0 work book gpf
Keywords : |
Last Reviewed: March 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |