The information in this article applies to:
SYMPTOMSIn Microsoft Excel, if you use the GET.DOCUMENT(1) function in a macro to return the name of the active document, for example to parse or process information in the file, you may receive a macro error if the file is in the Text, CSV, SYLK, or PRN file format. CAUSE
When you open a file in one of these formats, the worksheet name is
Sheet1, instead of the name of the document without the extension.
This may cause a macro that uses the name returned by the
GET.DOCUMENT(1) function to return a macro error. WORKAROUND
To avoid receiving a macro error when you use the GET.DOCUMENT(1)
function in a macro to return the name of the document, do either of
the following:
-or- STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c. REFERENCESFor more information about GET.DOCUMENT, choose the Search button in Microsoft Excel Macro Functions Help and type: GET.DOCUMENT function Additional query words: comma separated value print ascii symbolic link sheet name
Keywords : |
Last Reviewed: September 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |