Table of contents
TOC
Collapse the table of content
Expand the table of content

OLE Programmatic Identifiers (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

ActiveX Controls

Microsoft Access

Microsoft ExcelMicrosoft GraphMicrosoft OutlookMicrosoft PowerPointMicrosoft Word

ActiveX Controls

To create the ActiveX controls that are 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 Access

To create the Microsoft Access objects that are 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 that is 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

Microsoft Excel

To create the Microsoft Excel objects that are 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 that is available on the computer where the macro is running.

To create this objectUse this identifierComments
ApplicationExcel.Application
WorkbookExcel.AddIn
WorkbookExcel.ChartReturns a workbook that contains 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 that are 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 that is available on the computer where the macro is running.

To create this objectUse this identifier
ApplicationMSGraph.Application
ChartMSGraph.Chart

Microsoft Outlook

To create the Microsoft Outlook object that are 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 Outlook that is available on the computer where the macro is running.

To create this objectUse this identifier
ApplicationOutlook.Application

To create the ActiveX controls that are specific to the Outlook forms listed in the following table, use the corresponding OLE programmatic identifier.

To create this Microsoft Office Outlook controlUse this identifier
OlkBusinessCardControlOutlook.OlkBusinessCardControl
OlkCategoryOutlook.OlkCategoryStrip
OlkCheckBoxOutlook.OlkCheckBox
OlkComboBoxOutlook.OlkComboBox
OlkCommandButtonOutlook.OlkCommandButton
OlkContactPhotoOutlook.OlkContactPhoto
OlkDateControlOutlook.OlkDateControl
OlkFrameHeaderOutlook.OlkFrameHeader
OlkInfoBarOutlook.OlkInfoBar
OlkLabelOutlook.OlkLabel
OlkListBoxOutlook.OlkListBox
OlkOptionButtonOutlook.OlkOptionButton
OlkPageControlOutlook.OlkPageControl
OlkSenderPhotoOutlook.OlkSenderPhoto
OlkTextBoxOutlook.OlkTextBox
OlkTimeControlOutlook.OlkTimeControl
OlkTimeZoneControlOutlook.OlkTimeZone

Microsoft PowerPoint

To create the Microsoft PowerPoint object that are 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 PowerPoint that is available on the computer where the macro is running.

To create this objectUse this identifier
ApplicationPowerPoint.Application

Microsoft Word

To create the Microsoft Word objects that are 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 that is 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
© 2018 Microsoft