Userform position

cedricthecat

Active Member
Joined
May 17, 2007
Messages
460
(didn't there used to be a section for "Technical Problems"? I'm guessing this is one of those rather than a programming issue....)

Anyway!

Hi folks

Using a dual monitor set up at work, I'm finding that my userforms are popping up to the far right of the smaller monitor (mounted to the right of the principle screen). This is annoying as it means a good few inches of mouse movement to click a box that is appearing about 2 feet to the right of where it should be!

I can put the whole Excel application onto the smaller screen, but as the latter is not widescreen (which the principle one is) then I'm losing information off the edge of the display

The same workbooks work fine at home (single display laptop) so I;m just wondering if there's anything I can do to "tie" the userform to where Excel is being run?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi Dave

You can manually set the position the userform opens in by adjusting the StartUpPosition property to 0 (manual) and then specifying Left and Top properties with a value.
 
Upvote 0
Thanks both

Just looked and I have the StartUpPosition property to 0 already, with defined top and left properties

The problem I have is, I guess, two-fold
  1. I need to have the forms set up for both my (work) dual screen set up and my (home) laptop set up - and thus defining for one will mess up the other!
  2. The issue at work doesn't seem to be constant (sometimes the Userform is miles away, sometimes it appears just where I want it!)
On top of this, it's affecting Userforms across a whole range of Workbooks

I think it might be more of a Windows problem?
 
Upvote 0
As an update to this, in case anyone else is suffering the same, I now have a solution!

It appears that it was all down to where I have the VBA Project Window. If it's on the second monitor, all userforms appear on there, but if it's on the main monitor, they appear where they should!

Sorted! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

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