FocusInMailHeader Property Example

This example displays a message in the status bar if the insertion point is in an e-mail header field.

If Application.FocusInMailHeader = True Then
    StatusBar = "Selection is in message header"
End If