Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OLE Programmatic Identifiers

Office 2007

You can use an OLE programmatic identifier (sometimes called a ProgID) to create an Automation object. The following tables list OLE programmatic identifiers for Microsoft ActiveX controls, Microsoft Office applications, and Microsoft Office Web Components.

ActiveX Controls

To create the ActiveX controls listed in the following table, use the corresponding OLE programmatic identifier.

To create this controlUse this identifier
CheckBoxForms.CheckBox.1
ComboBoxForms.ComboBox.1
CommandButtonForms.CommandButton.1
FrameForms.Frame.1
ImageForms.Image.1
LabelForms.Label.1
ListBoxForms.ListBox.1
MultiPageForms.MultiPage.1
OptionButtonForms.OptionButton.1
ScrollBarForms.ScrollBar.1
SpinButtonForms.SpinButton.1
TabStripForms.TabStrip.1
TextBoxForms.TextBox.1
ToggleButtonForms.ToggleButton.1

Microsoft Office Access

To create the Microsoft Office Access objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Access available on the computer where the macro is running.

To create this objectUse one of these identifiers
ApplicationAccess.Application
CurrentDataAccess.CodeData, Access.CurrentData
CurrentProjectAccess.CodeProject, Access.CurrentProject
DefaultWebOptionsAccess.DefaultWebOptions

Microsoft Office Excel

To create the Microsoft Office Excel objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Excel available on the computer where the macro is running.

To create this objectUse one of these identifiersComments
ApplicationExcel.Application
WorkbookExcel.AddIn
WorkbookExcel.ChartReturns a workbook containing two worksheets; one for the chart and one for its data. The chart worksheet is the active worksheet.
WorkbookExcel.SheetReturns a workbook with one worksheet.

Microsoft Graph

To create the Microsoft Graph objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Graph available on the computer where the macro is running.

To create this objectUse one of these identifiers
ApplicationMSGraph.Application
ChartMSGraph.Chart

Microsoft Office Outlook

To create the Microsoft Office Outlook object given in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Outlook available on the computer where the macro is running.

To create this objectUse one of these identifiers
ApplicationOutlook.Application

Microsoft Office PowerPoint

To create the Microsoft Office PowerPoint object given in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of PowerPoint available on the computer where the macro is running.

To create this objectUse one of these identifiers
ApplicationPowerPoint.Application

Microsoft Office Word

To create the Microsoft Office Word objects listed in the following table, use one of the corresponding OLE programmatic identifiers. If you use an identifier without a version number suffix, you create an object in the most recent version of Word available on the computer where the macro is running.

To create this objectUse one of these identifiers
ApplicationWord.Application
DocumentWord.Document, Word.Template
GlobalWord.Global

See Also


Community Additions

Show:
© 2014 Microsoft