XL5: Improving Performance Using XLODBC.XLA |
When you use the ODBC add-in, XLODBC.XLA, to access Visual Basic SQL functions in Microsoft Excel, you can improve performance on your computer in some cases by running the Auto_Close macro either before you close the XLODBC.XLA file or before you close Microsoft Excel.
The XLODBC.XLA file contains an Auto_Close macro that, in some instances, releases allocated memory. However, this Auto_Close macro does not run when you use a Visual Basic procedure to close the file. Because of this behavior, when you use SQL functions provided by XLODBC.XLA in a Visual Basic procedure, use the following command in your procedure prior to a command that closes XLODBC.XLA or Microsoft Excel:
Workbooks("xlodbc.xla").RunAutoMacros xlAutoCloseThis command ensures that the Auto_Close macro in the XLODBC.XLA runs before the add-in file is closed.
For more information about the Microsoft ODBC Functions add-in for Microsoft Excel, choose the Search button in Help and type:
ODBC
Keywords :
Version : 5.00 5.00c
Platform : WINDOWS
Issue type :
Technology :
|
Last Reviewed: September 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |