The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you run a Visual Basic, Applications Edition, macro, you may receive one of the following error messages:
-or-
CAUSEThese error messages typically occur when the macro is referring to a worksheet object. MORE INFORMATION
Every call between a Visual Basic module and a Microsoft Excel worksheet is
made through Object Linking and Embedding (OLE). When you run a macro, you
usually receive descriptive error messages when OLE errors occur. However,
if OLE encounters an unresolvable error, you may receive one of the error
messages above.
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.
The correct syntax for the statement above would be:
REFERENCES"Visual Basic User's Guide," Microsoft Excel 5.0, page 189 Additional query words: value
Keywords : kbinterop kbprg |
Last Reviewed: October 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |