Export (0) Print
Expand All

Visual Basic Reference

Add-In Constants

See Also

Code Pane View

Constant Value Description
vbext_cv_ProcedureView 0 Displays the code pane in Procedure-level view.
vbext_cv_FullModuleView 1 Displays the code pane in full module view (all modules displayed).

Component Types

Constant Value Description
vbext_ct_StdModule 1 The component is a standard module.
vbext_ct_ClassModule 2 The component is a class module.
vbext_ct_MSForm 3 The component is a form.
vbext_ct_ResFile 4 The component is a standard resource file.
vbext_ct_VBForm 5 The component is a Visual Basic form.
vbext_ct_VBMDIForm 6 The component is an MDI form.
vbext_ct_PropPage 7 The component is a property page.
vbext_ct_UserControl 8 The component is a user control.
vbext_ct_DocObject 9 The component is a user form.
vbext_ct_RelatedDocument 10 The component is a RelatedDocument.
vbext_ct_ActiveXDesigner 11 The component is an ActiveX designer.

Connection Mode

Constant Value Description
vbext_cm_AfterStartup 0 Add-in is connected after IDE startup.
vbext_cm_Startup 1 Add-in is connected on IDE startup.
vbext_cm_External 2 Add-in is connected externally.

Control Type

Constant Value Description
vbext_ct_Light 1 Light-weight control.
vbext_ct_Standard 2 Standard control.
vbext_ct_Container 3 Container control.

Disconnection Mode

Constant Value Description
vbext_dm_HostShutDown 0 Add-in is disconnected when the host shuts down.
vbext_dm_UserClosed 1 Add-in is disconnected by the user.

File Type

Constant Value Description
vbext_ft_Form 0 The file is of type Form.
vbext_ft_Module 1 The file is of type Module.
vbext_ft_Class 2 The file is of type Class.
vbext_ft_Project 3 The file is of type Project.
vbext_ft_Exe 4 The file is of type Exe.
vbext_ft_Frx 5 The file is of type Frx.
vbext_ft_Res 6 The file is of type Res.
vbext_ft_UserControl 7 The file is of type User Control.
vbext_ft_PropertyPage 8 The file is of type Property Page.
vbext_ft_DocObject 9 The file is of type User Document.
vbext_ft_Binary 10 The file is of type Binary.
vbext_ft_GroupProject 11 The file is of type Group Project.
vbext_ft_Designers 12 The file is of type Designers.

Member Type

Constant Value Description
vbext_mt_Method 1 The member is of type Method.
vbext_mt_Property 2 The member is of type Property.
vbext_mt_Variable 3 The member is of type Variable.
vbext_mt_Event 4 The member is of type Event.
vbext_mt_Const 5 The member is of type Constant.

Procedure Type

Constant Value Description
vbext_pk_Proc 0 Specifies all procedures other than property procedures.
vbext_pk_Let 1 Specifies a procedure that assigns a value to a property.
vbext_pk_Set 2 Specifies a procedure that assigns a reference to a property.
vbext_pk_Get 3 Specifies a procedure that returns the value to a property.

Project Start Mode

Constant Value Description
vbext_psm_StandAlone 0 Startup mode is standalone.
vbext_psm_OleServer 1 Startup mode is ActiveX component.

Project Type

Constant Value Description
vbext_pt_StandardExe 0 Project is a standard .exe project.
vbext_pt_ActiveXExe 1 Project is an ActiveX .exe project.
vbext_pt_ActiveXDll 2 Project is an ActiveX .dll project.
vbext_pt_ActiveXControl 3 Project is an ActiveX control project.

Reference Type

Constant Value Description
vbext_rk_TypeLib 0 Represents a reference to a type library.
vbext_rk_Project 1 Represents a reference to a project.

Scope

Constant Value Description
vbext_Private 1 Member has private scope.
vbext_Public 2 Member has public scope.
vbext_Friend 3 Member has friend scope.

Startup Object

Constant Value Description
vbext_so_SubMain 0 Startup object is sub Main.
vbext_so_None 1 There is no startup object.

VBA Display Model

Constant Value Description
vbext_dm_SDI 0 Display mode is single document interface.
vbext_dm_MDI 1 Display mode is multiple document interface.

VBA Mode

Constant Value Description
vbext_vm_Run 0 Project is in Run mode.
vbext_vm_Break 1 Project is in Break mode.
vbext_vm_Design 2 Project is in Design mode.

Window State

Constant Value Description
vbext_ws_Normal 0 Window is normal.
vbext_ws_Minimize 1 Window is minimized (to an icon).
vbext_ws_Maximize 2 Window is maximized (largest size).

File Type

Constant Value Description
vbext_wt_CodeWindow 0 Window is a code window.
vbext_wt_Designer 1 Window is a designer window.
vbext_wt_Browser 2 Window is a browser window.
vbext_wt_Watch 3 Window is a watch window.
vbext_wt_Locals 4 Window is a locals window.
vbext_wt_Immediate 5 Window is an immediate window.
vbext_wt_ProjectWindow 6 Window is a project window.
vbext_wt_PropertyWindow 7 Window is a property window.
vbext_wt_Find 8 Window is a find window.
vbext_wt_FindReplace 9 Window is a find & replace window.
vbext_wt_ToolBox 10 Window is a toolbox window.
vbext_wt_LinkedWindowFrame 11 Window is a linkedwindowframe window.
vbext_wt_MainWindow 12 Window is a main window.
vbext_wt_Preview 13 Window is a preview window.
vbext_wt_ColorPalette 14 Window is a color palette window.
vbext_wt_ToolWindow 15 Window is a tool window.

Menu Shortcuts

Constant Value Description
vbextMenuShortcutCtrlA 1 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlB 2 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlC 3 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlD 4 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlE 5 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF 6 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlG 7 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlH 8 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlI 9 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlJ 10 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlK 11 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlL 12 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlM 13 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlN 14 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlO 15 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlP 16 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlQ 17 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlR 18 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlS 19 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlT 20 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlU 21 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlV 22 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlW 23 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlX 24 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlY 25 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlZ 26 User-defined shortcut keystrokes.
vbextMenuShortcutF1 27 User-defined shortcut keystrokes.
vbextMenuShortcutF2 28 User-defined shortcut keystrokes.
vbextMenuShortcutF3 29 User-defined shortcut keystrokes.
vbextMenuShortcutF4 30 User-defined shortcut keystrokes.
vbextMenuShortcutF5 31 User-defined shortcut keystrokes.
vbextMenuShortcutF6 32 User-defined shortcut keystrokes.
vbextMenuShortcutF7 33 User-defined shortcut keystrokes.
vbextMenuShortcutF8 34 User-defined shortcut keystrokes.
vbextMenuShortcutF9 35 User-defined shortcut keystrokes.
vbextMenuShortcutF10 36 User-defined shortcut keystrokes.
vbextMenuShortcutF11 37 User-defined shortcut keystrokes.
vbextMenuShortcutF12 38 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF1 39 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF2 40 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF3 41 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF4 42 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF5 43 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF6 44 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF7 45 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF8 46 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF9 47 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF10 48 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF11 49 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlF12 50 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF1 51 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF2 52 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF3 53 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF4 54 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF5 55 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF6 56 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF7 57 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF8 58 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF9 59 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF10 60 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF11 61 User-defined shortcut keystrokes.
vbextMenuShortcutShiftF12 62 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF1 63 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF2 64 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF3 65 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF4 66 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF5 67 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF6 68 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF7 69 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF8 70 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF9 71 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF10 72 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF11 73 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlShiftF12 74 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlIns 75 User-defined shortcut keystrokes.
vbextMenuShortcutShiftIns 76 User-defined shortcut keystrokes.
vbextMenuShortcutCtrlDel 77 User-defined shortcut keystrokes.
vbextMenuShortcutShiftDel 78 User-defined shortcut keystrokes.
vbextMenuShortcutAltBksp 79 User-defined shortcut keystrokes.

Source Code Control Status

Constant Value Description
vbextSCCStatusNotControlled 0 File isn't under source code control.
vbextSCCStatusControlled 1 File is under source code control.
vbextSCCStatusCheckedOut 2 File is checked out to the current user.
vbextSCCStatusOutOther 3 File is checked out to another user.
vbextSCCStatusOutOfDate 32 File isn't the most recent.
vbextSCCStatusShared 512 File is shared between projects.

Show:
© 2014 Microsoft