Article ID: 118379
Article Last Modified on 10/11/2006
-or-
Msgbox Sheets("Sheet1").Parent
In this example, information is requested from an object instead of from a
property of that object. Since the object doesn't give a property, Visual
Basic tries to return the default property, ".Value." Because worksheets do
not have a Value property, you receive an OLE Automation error.
Msgbox Sheets("Sheet1").Parent.Name
Additional query words: value XL5 Err Msg
Keywords: kbinterop kbprogramming KB118379