BUG: Is Operator in VBApp Incorrectly Evaluates Excel Objects (114345)
The information in this article applies to:
- Microsoft Excel for Windows 5.0
This article was previously published under Q114345 SYMPTOMS
Using the Is operator to evaluate whether or not two object variables
reference the same Microsoft Excel object, incorrectly evaluates to False.
WORKAROUND
Using 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
STATUS
Microsoft 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.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug KB114345 |
---|
|