Inspector.BeforeSize Event
Outlook Developer Reference |
Occurs when the user sizes the current Inspector.
Syntax
expression.BeforeSize(Cancel)
expression A variable that represents an Inspector object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Cancel | Required | Boolean | False when the event occurs. If the event procedure sets this argument to True, the operation is not completed and the Inspector is not sized. |
Remarks
This event can be cancelled after it has started. If the event is cancelled, the window is not sized.
Example
The following Microsoft Visual Basic/Visual Basic for Applications (VBA) example prompts the user with a warning message before the inspector is sized. If the user clicks Yes, the inspector can be sized. The sample code must be placed in a class module such as ThisOutlookSession
, and the Initialize_Handler()
subroutine should be called before the event procedure can be called by Microsoft Outlook.
Visual Basic for Applications |
---|
|
See Also