XL97: VBA Macro Behavior Is Different from Excel 5.0 or 7.0 (162721)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q162721 SUMMARY
When you run a Visual Basic for Applications macro in Microsoft Excel 97,
the way the macro behaves may be different from the way it behaves in
earlier versions of Microsoft Excel. This may be true for any of the
following reasons:
- The architecture of Microsoft Excel 97 is somewhat different from the
architecture that is used in earlier versions of Microsoft Excel. Some
elements (for example, menu bars and toolbars) are greatly enhanced in
Microsoft Excel 97. As a result, Visual Basic code that interacts with
these elements may work differently.
- Microsoft Excel 97 corrects some problems that are present in earlier
versions of Microsoft Excel. As a result, Visual Basic code that works
in earlier versions of Microsoft Excel may work differently in
Microsoft Excel 97.
- Because all of the Microsoft Office programs include Microsoft Visual
Basic for Applications, the Visual Basic environment in Microsoft Excel
includes changes that accommodate the new programs and provide
consistent behavior in all programs. As a result, code that uses OLE
Automation or other cross-product functionality may work differently in
Microsoft Excel 97.
Microsoft realizes the importance of minimizing the amount of effort that
is required to use macros in Microsoft Excel 97. Microsoft Excel 97 is
designed to be compatible with earlier versions of Microsoft Excel;
however, in some cases, it may be necessary to modify your code so that it
works in Microsoft Excel 97.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbprb kbProgramming KB162721 |
---|
|