I've found quite a few tutorials on how to position userforms that you create in Excel:
Mr Excel
Tom's Tutorials
XTreme VB
And even this StackOverflow question which uses the same method.
The problem is that Outlook appears to use different notation for it's own position - there is no such thing as:
Application.Left or Application.Width
Application.Top or Application.Height
Does anyone know the Outlook equivalent?
Outlook can have multiple windows - Explorers (where you see the list of messages) and inspectors (where you use the details of a single message).
Both Explorer and Inspector objects expose Width, Height, Left, Top properties. Outlook windows are exposed through
Application.ActiveWindow (either Explorer or Inspector)Application.ActiveExplorerApplication.ActiveInspector Application.Inspectors/Explorers collections. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With