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

Type Property (VBA Add-In Object Model)

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

Returns a numeric or string value containing the type of object. Read-only. Return Values The Type property settings for the Window object are described in the following table:

ConstantValueDescription
vbext_wt_CodeWindow0Code window
vbext_wt_Designer1Designer
vbext_wt_Browser2Object Browser
vbext_wt_Immediate5Immediate window
vbext_wt_ProjectWindow6Project window
vbext_wt_PropertyWindow7Properties window
vbext_wt_Find8Find dialog box
vbext_wt_FindReplace9Search and Replace dialog box
vbext_wt_LinkedWindowFrame11Linked window frame
vbext_wt_MainWindow12Main window
vbext_wt_Watch3Watch window
vbext_wt_Locals4Locals window
vbext_wt_Toolbox10Toolbox
vbext_wt_ToolWindow15Tool window

Important Objects, properties, and methods for controlling linked windows, linked window frames, and docked windows are included on the Macintosh for compatibility with code written in Windows. However, these language elements will generate run-time errors when run on the Macintosh.

The Type property settings for the VBComponent object are described in the following table:

ConstantValueDescription
vbext_ct_StdModule1Standard module
vbext_ct_ClassModule2Class module
vbext_ct_MSForm3Microsoft Form
vbext_ct_ActiveXDesigner11ActiveX Designer
vbext_ct_Document100Document Module

The Type property settings for the Reference object are described in the following table:

ConstantValueDescription
vbext_rk_TypeLib0Type library
vbext_rk_Project1Project

The Type property settings for the VBProject object are described in the following table:

ConstantValueDescription
vbext_pt_HostProject100Host Project
vbext_pt_StandAlone101Standalone Project
© 2018 Microsoft