Friday, 9 August 2013

Explain the Keyword CreateObject

CreateObject creates and returns a reference to an Automation object
Syntax: CreateObject(servername.typename [, location])
Arguments
Servername: Required. The name of the application providing the object. E.g. Internet Explorer, Excel
Typename : Required. The type or class of the object to create.
Location : Optional. The name of the network server where the object is to be created
Example : Set IE = CreateObject(”InternetExplorer.Application”)

No comments:

Post a Comment