The process of an object being assigned to a variable is called binding and there are two types (early and late).
The variable is declared as a specific datatype.
The object which a property or method belongs to is resolved at compile time.
Dim wdApp as Word.Application
Set wdApp = CreateObject("Word.Application")
This is much faster than late binding and is the preferred method.
The other advantage of early binding is that the Editor can display method and property Intellisense.
© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext