4/30/15
CreateObject(servername.typename[,location])
Ex:
Set objReg=CreateObject("vbscript.regexp") - to work on regular expression
Set Exlobj = CreateObject("Excel.Application") - to work on excel application
Set fso = CreateObject("Scripting.FileSystemObject") -
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 |
Ex:
Set objReg=CreateObject("vbscript.regexp") - to work on regular expression
Set Exlobj = CreateObject("Excel.Application") - to work on excel application
Set fso = CreateObject("Scripting.FileSystemObject") -
No comments:
Post a Comment