MsgBox position once open

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,223
Office Version
  1. 2007
Platform
  1. Windows
Hi,
General question for when the MsgBox opens & is shown on the screen is the default setting to open middle of screen, Is it possible to have it paced more towards the top.

Reason i ask is some of my customers in a drop down box are just out of sight & the bottom of the screen thus having to scroll to see the last 3 names.

Allowing the user to specify where the MsgBox should be seen of the screen would fix this.
Is this possible ?

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
It maybe easier to create an additional userform that you can pop up at specific location.
 
Upvote 0
Hi
Let’s assume it’s called userform1
Can you advise code please to sock it more towards the top of the screen.

if you can advise the piece I need to edit so I can move it about.
Thanks.
 
Upvote 0
You can determine where the userform pops up in the userform initialize event.

VBA Code:
Private Sub UserForm_Initialize()
    '-------------------------------
    Me.StartUpPosition = 0
    Me.Top = Application.Top + 20
    Me.Left = Application.Left + Application.Width - Me.Width - 200
   
    '-------------------------------
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,428
Members
448,896
Latest member
MadMarty

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top