property OleEvent.ID as Long
Retrieves a long expression that specifies the identifier of the event.

TypeDescription
Long A Long expression that defines the identifier of the OLE event.
The identifier of the event could be used to identify a specified OLE event. Use the Name property of the OLE Event to get the name of the OLE Event. Use the ToString property to display information about an OLE event. The ToString property displays the event identifier in square brackets [] after the event name. For example, when the TAB key is pressed inside the custom-view, the ToString returns "KeyDown[-602](KeyCode/Short* = 9,Shift/Short = 0)", indicating that the identifier for the KeyDown event triggered by the internal editor is -602. 

For instance,  the following VB sample displays a message box once the user presses a key:

Private Sub Pivot1_OleEvent(ByVal Ev As EXPIVOTLibCtl.IOleEvent)
    If (Ev.ID = -602) Then
        MsgBox Ev.ToString
    End If
End Sub

For instance,  the following VB sample displays information about the event being fired:

Private Sub Pivot1_OleEvent(ByVal Ev As EXPIVOTLibCtl.IOleEvent)
    Debug.Print Ev.ToString
End Sub