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

Event Codes (Visio)

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

When you are working with the Add or AddAdvise method, use the following table to find the event code for the event you want to create. This table lists each Visio event and its corresponding event code and numeric code.

Note If you are using Visual Basic or Visual Basic for Applications (VBA), you don't need to create your own events. See the event topic in this reference that corresponds to the event you want to use.

Table of events and corresponding event and numeric codes

** Event**** Event code**** Numeric code**
AfterModalvisEvtApp+visEvtAfterModal&;H1040 (4160)
AfterResumevisEvtCodeAfterResume&;H00D1 (209)
AfterResumeEventsvisEvtCodeAfterResumeEvents&;H00D5 (213)
AfterRemoveHiddenInformationvisEvtRemoveHiddenInformation&;H000A (11)
AppActivatedvisEvtApp+visEvtAppActivate&;H1001 (4097)
AppDeactivatedvisEvtApp+visEvtAppDeactivate&;H1002 (4098)
AppObjActivatedvisEvtApp+visEvtObjActivate&;H1004 (4100)
AppObjDeactivatedvisEvtApp+visEvtObjDeactivate&;H1008 (4104)
BeforeDataRecordsetDeletevisEvtDel+visEvtDataRecordset&;H4020 (16416)
BeforeDocumentClosevisEvtDel+visEvtDoc&;H4002 (16386)
BeforeDocumentSavevisEvtCodeBefDocSave&;H0007 (7)
BeforeDocumentSaveAsvisEvtCodeBefDocSaveAs&;H0008 (8)
BeforeMasterDeletevisEvtDel+visEvtMaster&;H4008 (16392)
BeforeModalvisEvtApp+visEvtBeforeModal&;H1020 (4128)
BeforePageDeletevisEvtDel+visEvtPage&;H4010 (16400)
BeforeQuitvisEvtApp+visEvtBeforeQuit&;H1010 (4112)
BeforeSelectionDeletevisEvtCodeBefSelDel&;H0385 (901)
BeforeShapeDeletevisEvtDel+visEvtShape&;H4040 (16448)
BeforeShapeTextEditvisEvtCodeShapeBeforeTextEdit&;H0323 (803)
BeforeStyleDeletevisEvtDel+visEvtStyle&;H4004 (16388)
BeforeSuspendvisEvtCodeBeforeSuspend&;H00D0 (208)
BeforeSuspendEventsvisEvtCodeBeforeSuspendEvents&;H00D4 (212)
BeforeWindowClosedvisEvtDel+visEvtWindow&;H4001 (16385)
BeforeWindowPageTurnvisEvtCodeBefWinPageTurn&;H02BF (703)
BeforeWindowSelDeletevisEvtCodeBefWinSelDel&;H02BE (702)
CalloutRelationshipAddedvisEvtCodeCalloutRelationshipAdded&;H01F8 (504)
CalloutRelationshipDeletedvisEvtCodeCalloutRelationshipDeleted&;H01F9 (505)
CellChangedvisEvtMod+visEvtCell&;H2800 (10240)
ConnectionsAddedvisEvtAdd+visEvtConnect&;H8100 (33024)
ConnectionsDeletedvisEvtDel+visEvtConnect&;H4100 (16640)
ContainerRelationshipAddedvisEvtCodeContainerRelationshipAdded&;H01F6 (502)
ContainerRelationshipDeletedvisEvtCodeContainerRelationshipDeleted&;H01F7 (503)
ConvertToGroupCanceledvisEvtCodeCancelConvertToGroup&;H038C (908)
DataRecordsetAddedvisEvtAdd+visEvtDataRecordset&;H8020 (32800)
DataRecordsetChangedvisEvtMod+VisEvtDataRecordset&;H2020 (8224)
DesignModeEnteredvisEvtCodeDocDesign&;H0006 (6)
DocumentAddedvisEvtAdd+visEvtDoc&;H8002 (32770)
DocumentChangedvisEvtMod+visEvtDoc&;H2002 (8194)
DocumentCloseCanceledvisEvtCodeCancelDocClose&;H0010 (10)
DocumentCreatedvisEvtCodeDocCreate&;H0001 (1)
DocumentOpenedvisEvtCodeDocOpen&;H0002 (2)
DocumentSavedvisEvtCodeDocSave&;H0003 (3)
DocumentSavedAsvisEvtCodeDocSaveAs&;H0004 (4)
EnterScopevisEvtCodeEnterScope&;H00CA (202)
ExitScopevisEvtCodeExitScope&;H00CB (203)
FormulaChangedvisEvtMod+visEvtFormula&;H3000 (12288)
GroupCanceledvisEvtCodeCancelSelGroup&;H038E (910)
KeyDownvisEvtCodeKeyDown&;H02C8 (712)
KeyPressvisEvtCodeKeyPress&;H02C9 (713)
KeyUpvisEvtCodeKeyUp&;H02CA (714)
MasterAddedvisEvtAdd+visEvtMaster&;H8008 (32776)
MarkerEventvisEvtApp+visEvtMarker&;H1100 (4352)
MasterChangedvisEvtMod+visEvtMaster&;H2008 (8200)
MasterDeleteCanceledvisEvtCodeCancelMasterDel&;H0191 (401)
MouseDownvisEvtCodeMouseDown&;H02C5 (709)
MouseMovevisEvtCodeMouseMove&;H02C6 (710)
MouseUpvisEvtCodeMouseUp&;H02C7 (711)
MustFlushScopeBeginningvisEvtCodeBefForcedFlush&;H00C8 (200)
MustFlushScopeEndedvisEvtCodeAfterForcedFlush&;H00C9 (201)
NoEventsPendingvisEvtApp+visEvtNonePending&;H1200 (4608)
OnKeystrokeMessageForAddonvisEvtCodeWinOnAddonKeyMSG&;H02C4 (708)
PageAddedvisEvtAdd+visEvtPage&;H8010 (32784)
PageChangedvisEvtMod+visEvtPage&;H2010 (8208)
PageDeleteCanceledvisEvtCodeCancelPageDel&;H01F5 (501)
QueryCancelConvertToGroupvisEvtCodeQueryCancelConvertToGroup&;H038B (907)
QueryCancelDocumentClosevisEvtCodeQueryCancelDocClose&;H0009 (9)
QueryCancelGroupvisEvtCodeQueryCancelSelGroup&;H038D (909)
QueryCancelMasterDeletevisEvtCodeQueryCancelMasterDel&;H0190 (400)
QueryCancelPageDeletevisEvtCodeQueryCancelPageDel&;H01F4 (500)
QueryCancelQuitvisEvtCodeQueryCancelQuit&;H00CC (204)
QueryCancelSelectionDeletevisEvtCodeQueryCancelSelDel&;H0387 (903)
QueryCancelStyleDeletevisEvtCodeQueryCancelStyleDel&;H012C (300)
QueryCancelSuspendvisEvtCodeQueryCancelSuspend&;H00CE (206)
QueryCancelSuspendEventsvisEvtCodeQueryCancelSuspendEvents&;H0528 (210)
QueryCancelUngroupvisEvtCodeQueryCancelUngroup&;H0389 (905)
QueryCancelWindowClosevisEvtCodeQueryCancelWinClose&;H02C2 (706)
QuitCanceledvisEvtCodeCancelQuit&;H00CD (205)
RunModeEnteredvisEvtCodeDocRunning&;H0005 (5)
RuleSetValidatedvisEvtCodeRuleSetValidated&;H000D (13)
SelectionAddedvisEvtCodeSelAdded&;H0386 (902)
SelectionChangedvisEvtCodeWinSelChange&;H02BD (701)
SelectionDeleteCanceledvisEvtCodeCancelSelDel&;H0388 (904)
SelectionMovedToSubprocessvisEvtCodeSelectionMovedToSubprocess&;H000B (12)
ShapeAddedvisEvtAdd+visEvtShape&;H8040 (32832)
ShapeChangedvisEvtMod+visEvtShape&;H2040 (8256)
ShapeDataGraphicChangedvisEvtShapeDataGraphicChanged&;H0327 (807)
ShapeExitedTextEditvisEvtCodeShapeExitTextEdit&;H0324 (804)
ShapeLinkAddedvisEvtShapeLinkAdded&;H0325 (805)
ShapeLinkDeletedvisEvtShapeLinkDeleted&;H0326 (806)
ShapeParentChangedvisEvtCodeShapeParentChange&;H0322 (802)
ShapesDeletedvisEvtCodeShapeDelete&;H0321 (801)
StyleAddedvisEvtAdd+visEvtStyle&;H8004 (32772)
StyleChangedvisEvtMod+visEvtStyle&;H2004 (8196)
StyleDeleteCanceledvisEvtCodeCancelStyleDel&;H012D (301)
SuspendCanceledvisEvtCodeCancelSuspend&;H00CF (207)
SuspendEventsCanceledvisEvtCodeCancelSuspendEvents&;H00D3 (211)
TextChangedvisEvtMod+visEvtText&;H2080 (8320)
UngroupCanceledvisEvtCodeCancelUngroup&;H038A (906)
ViewChangedvisEvtCodeViewChanged&;H02C1 (705)
VisioIsIdlevisEvtApp+visEvtIdle&;H1400 (5120)
WindowActivatedvisEvtApp+visEvtWinActivate&;H1080 (4224)
WindowCloseCanceledvisEvtCodeCancelWinClose&;H02C3 (707)
WindowOpenedvisEvtAdd+visEvtWindow&;H8001 (32769)
WindowChangedvisEvtMod+visEvtWindow&;H2001 (8193)
WindowTurnedToPagevisEvtCodeWinPageTurn&;H02C0 (704)
© 2017 Microsoft