EnvelopeShow Event

Microsoft Office Visual Basic

Private Sub object_EnvelopShow()

object    A variable which references an object of type MsoEnvelope declared with events in a class module.

Example

The following example sets up event-handling routines for the MsoEnvelope object.

Public WithEvents env As MsoEnvelope

Private Sub Class_Initialize()
    Set env = Application.ActiveDocument.MailEnvelope
End Sub

Private Sub env_EnvelopeShow()
    MsgBox "The MsoEnvelope UI is showing."
End Sub

Private Sub env_EnvelopeHide()
    MsgBox "The MsoEnvelope UI is hidden."
End Sub