BUG: Is Operator in VBApp Incorrectly Evaluates Excel ObjectsLast reviewed: July 29, 1997Article ID: Q114345 |
The information in this article applies to:
SYMPTOMSUsing the Is operator to evaluate whether or not two object variables reference the same Microsoft Excel object, incorrectly evaluates to False.
WORKAROUNDUsing a property of an object, such as Name, correctly evaluates whether or not the objects are the same. For example:
If xlObject1.Name = xlObject2.Name then ' Code when the objects refer to our code End If STATUSMicrosoft has confirmed this to be a bug in Microsoft Visual Basic, Applications Edition, version 1.0 that ships with Microsoft Excel version 5.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
Keywords : kbprg Version : 1.00 5.00 Platform : WINDOWS Issue type : kbbug Solution Type : kbworkaround |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |