XL5: Not All Commands Recorded Using Get External Data

Last reviewed: February 2, 1998
Article ID: Q119712
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a

SYMPTOMS

In Microsoft Excel 5.0, when you turn on the macro recorder, and you use the Get External Data command to return data to a worksheet, not all of the actions that you record appear in the recorded macro.

CAUSE

This behavior occurs when you record the macro using the Visual Basic language, and you use the Get External Data command multiple times. If you use the Get External Data command to return data to a worksheet, activate another worksheet and then use the Get External Data command again to return data to the selected worksheet, only the first QueryGetData function is actually recorded. The second Get External Data command is not recorded.

This problem does not occur if you insert a new worksheet before you choose the Get External Data command a second time while the macro recorder is running.

Note that this is not a problem if you record the macro using the Microsoft Excel 4.0 Macro language, or if you record a macro in a later version of Microsoft Excel.

WORKAROUND

To record all of your actions when you choose the Get External Data command multiple times when you record a macro, insert a new worksheet in the workbook before you choose the command again.

STATUS

Microsoft 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 95, version 7.0, Microsoft Excel 97 for Windows, and Microsoft Excel 98 Macintosh Edition.

REFERENCES

For more information about the QueryGetData Function, choose the Search button in the Visual Basic Reference and type:

    QueryGetData Function


Additional query words: 1.00 5.00 5.00a 5.00c XL5 addins
Version : WINDOWS:5.0,5.0c; MACINTOSH:5.0,5.0a
Platform : MACINTOSH WINDOWS


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: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.