Type Property
Applies To
Reference object, VBComponent object, Window object.
Description
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:
| Constant | Value | Description | 
|  | 
| vbext_wt_CodeWindow | 0 | Code window | 
| vbext_wt_Designer | 1 | Designer | 
| vbext_wt_Browser | 2 | Object Browser | 
| vbext_wt_Watch | 3 | Watch pane | 
| vbext_wt_Locals | 4 | Locals | 
| vbext_wt_Immediate | 5 | Immediate window | 
| vbext_wt_ProjectWindow | 6 | Project window | 
| vbext_wt_PropertyWindow | 7 | Properties window | 
| vbext_wt_Find | 8 | Find dialog box | 
| vbext_wt_FindReplace | 9 | Search and Replace dialog box | 
| vbext_wt_LinkedWindowFrame | 11 | Linked window frame | 
| vbext_wt_MainWindow | 12 | Main window | 
The Type property settings for the VBComponent object are described in the following table:
| Constant | Description | 
|  | 
| vbext_ct_ClassModule | Class module | 
| vbext_ct_MSForm | Microsoft Form | 
| vbext_ct_StdModule | Standard module | 
| vbext_ct_Document | Document module | 
The Type property settings for the Reference object are described in the following table:
| Constant | Description | 
|  | 
| vbext_rk_TypeLib | Type library | 
| vbext_rk_Project | Project | 
See Also
IndexedValue property, Name property, Value property.
Example
The following example uses the Type property to return a value indicating the type of the specified member of the VBComponents collection in a particular project. The value returned is a number that corresponds to a predefined constant for one of the component object types.
Debug.Print Application.VBE.VBProjects(1).VBComponents(1).Type