Creating and Referencing Objects

The following sections describe how to create new objects as well as reference currently open objects.

Keyword New

In the early binding example, the keyword New was used to reference the Word application. The New keyword can be used only with early binding; it does not work with late binding. CreateObject or GetObject would also work, but New was best for the example. If an instance of the application is running and you want to use it, use the GetObject function instead.

0 0

Post a comment