FormRegion.FormRegionMode (Outlook)

Returns an OlFormRegionMode constant that indicates whether the form region is in a read page, compose page, or Reading Pane. Possible return values are olFormRegionCompose - The form region is in a compose page of a message or any unsendable item such as a contact item, olFormRegionPreview - The form region is in the Reading Pane, olFormRegionRead - The form region is in the read page of a received message or a post note.

If the user has a mail item in the Reading Pane, you can use the MailItem.Sent property to further determine if the user is in the edit mode or the read mode of the Reading Pane. A mail item is displayed differently in the Reading Pane if it is in the edit mode (the mail item is in the Draft folder) than if it is in the read mode (the mail item is in the Inbox or Sent folder).


Dim frn As FormRegion: Set frn = 
Dim ofrFormRegionMode As OlFormRegionMode
ofrFormRegionMode = frn.FormRegionMode