Microsoft Knowledge Base |
|
Excel: GET.DOCUMENT() Macro Error with Numbered Filenames |
|
|
Last reviewed: June 30, 1997
Article ID: Q107904 |
|
|
The information in this article applies to:
SUMMARY When you concatenate the result from the macro command GET.DOCUMENT(1) within a SELECT() statement to select a range on an active sheet, you will receive a macro error if the GET.DOCUMENT(1) statement returns a filename beginning with a number.
MORE INFORMATION
Steps to Reproduce Problem
To fix the above macro command, make these changes: insert quotation mark, apostrophe, quotation mark, ampersand after the second open parenthesis; add apostrophe before the exclamation point. The modified code should now match the line below.
=SELECT(INDIRECT("'"&GET.DOCUMENT(1)&"'!A1:B2",TRUE))
=RETURN()
|
|
Additional query words: 4.00 3.00 3.00a
©1997 Microsoft Corporation. All rights reserved. Legal Notices. |