VBScript CreateObject Function
Complete VBScript Reference
The CreateObject function creates an object of a specified type.
Syntax
CreateObject(servername.typename[,location])
|
Parameter |
Description |
servername |
Required. The name of the application that provides the
object |
typename |
Required. The type/class of the object |
location |
Optional. Where to create the object |
Example 1
dim myexcel
Set myexcel=CreateObject("Excel.Sheet")
myexcel.Application.Visible=True
...code...
myexcel.Application.Quit
Set myexcel=Nothing
|
Complete VBScript Reference
|