You are on page 1of 1

The CreateObject function creates an instance of an OLE Automation (ActiveX) object OLE (Profile

Dynamic-Link Libraries explains the steps involved in profiling dynamiclink libraries and profiling multiple .DLL and .EXE files. Since an OLE server is basically an EXE or a DLL, and an ActiveX control (formerly OLE control) is a DLL even though it has an extension of .OCX, profiling them is similar to profiling an EXE or a DLL. When you profile an OLE server or ActiveX control, you follow the same steps and use the same commands that you would for an EXE or a DLL.) Automation (ActiveX)
object Prior to calling the methods, functions, or properties of an object, you are required to create an instance of that object. Once an object is created, you reference it in code using the object variable you defined. Once an object is created, you reference it in code using the object variable you defined. Return Value is a reference to an ActiveX object.
Dim oDoc Set oDoc = CreateObject("Word.Document")

ProgID

Connection: An ActiveX Data Objects connection ADODB.Recordset: An ActiveX Data Objects recordset ADODB.Connection : An ActiveX Data Object connection DAO.DBEngine : Data Access Objects Internet.Explorer : An Internet Explorer Session. Excel.Application : Microsoft Excel Excel.Chart : A Microsoft Excel chart Excel.Sheet : A Microsoft Excel workbook MAPI.Session : Collaborative Data Objects Outlook.Application : Microsoft Outlook Scripting.Dictionary : Dictionary object Scripting.FileSystem : Object File System object model QuickTest.Application : QuickTest object model instance.

In Windows Script Host, using the CreateObject method of the WScript object instead of the VBScript CreateObject function allows WSH to track the object instance and to handle the object's events. When using VBScript to develop an Outlook form, the CreateObject method of the Application object is the preferred way to instantiate an external class. VBScript offers the ability to reference an object on another network server. To use a current instance of an already running ActiveX object, use the GetObject function.

You might also like