MsoEnvelope.EnvelopeShow event (Office)
Occurs when the user interface (UI) that corresponds to the MsoEnvelope object is displayed.
Syntax
expression.EnvelopeShow
expression An expression that returns an MsoEnvelope object.
Remarks
The MsoEnvelope object provides access to functionality that lets you send documents as email messages directly from Microsoft Office applications.
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.