Alan McGowan
Senior Member
- Outlook version
- Outlook 2013 64 bit
- Email Account
- Exchange Server
Is there any way to ensure a VBA form appears in the centre the screen that outlook is active in? If I have Outlook running on my primary screen I can use code to centre it on that screen. However if I have Outlook open on my secondary monitor the form is centred based on the combined with of both screens.
I have the form StartUpPosition set to 2 - CenterScreen and the following code under Userform_Initialize:
I have the form StartUpPosition set to 2 - CenterScreen and the following code under Userform_Initialize:
Code:
Me.Top = Application.ActiveWindow.Top
Me.Left = Application.ActiveWindow.Left