Saturday, May 2, 2015

CreateObject(servername.typename[,location]) ----vbscript

4/30/15

CreateObject(servername.typename[,location])

ParameterDescription
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