1.

What is the use of keyword CreateObject, explain it with example?

Answer»

The keyword “CreateObject” creates and returns a reference to the test object.

CreateObject (servername.typename [, location] )

Where,

servername − A required argument for the code, used to present the name of the application that provides objecst.

typename − A required argument for the code, used to present the type or class of the object to create.

location −  An optional argument for the code, used to present the name of the network server where the object is to be created.

 

For example − Set IE = CreateObject("Chrome.Application")



Discussion

No Comment Found