The information in this article applies to:
SYMPTOMSThe following error message displays when you attempt to use a predefined constant for an automation server: For example, you may receive this error when you try to use the constant xlR1C1 from the Microsoft Excel Object Library. CAUSEYou are using late binding on an ActiveX component. RESOLUTION
You can use early binding by referencing the object library for the
automation server in your project. Click References on the Project menu to
select the object library.
Const xlR1C1 = -4150 STATUSThis behavior is by design. MORE INFORMATION
Late binding occurs when you declare a variable As Object, As Form, As
Control, or As Variant and Visual Basic cannot determine at compile time
what sort of object reference the variable will contain. Therefore, Visual
Basic must use late binding to determine at run time whether the actual
object has the properties and methods you call using the variable.
REFERENCES"How Binding Affects ActiveX Component Performance" in the Visual Basic Component Tools Guide, version 5.0. Additional query words:
Keywords : kberrmsg kbinterop kbAutomation kbVBp kbVBp400 kbVBp500 kbVBp600 kbGrpDSO kbOffice2000 |
Last Reviewed: June 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |