Short one, relating to Excel.
When one needs to access objects, methods, properties and functions of Excel, there's basically two methods of such. Early and Late binding.
Early binding:
Setting a reference, like this makes the application "aware" of the existence of Excel, and you can dimension, instantiate and use all of the objects, methods and properties available to Excel in the application. This means for instance that the intellisence dropdown gives you (most of) the relevant properties and methods available when programming.
Late binding:
Then you'd declare your objcets as object
[tt]dim oxl as object[/tt]
Then use for instance the createobject (and/or getobject) method to instantiate Excel:
In this scenario, the application is not "aware" of Excel until the createobject line is excecuted, so for instance the intellisence dropdown will not give you any hints when programming.
So basically, setting a reference to an object library, makes the objects, methods and properties of that library available to you, both when programming and at runtime.
A lot of developers use late binding to avoid version problems, but then one often develop using early binding, then change to late binding when deploying.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.