UserForm positioning

E

Emil

Hello,

When opening a UserForm I want it to be positioned in the lower right
corner of the screen, regardless of which screen resolution being used.
I have tried:

UserForm1.Top = GetSystemMetrics32(1) - UserForm1.Height
UserForm1.Left = GetSystemMetrics32(0) - UserForm1.Width

But this does not work properly, apparently because of the different
units being used in these different functions (pixels, points etc.) Can
anyone help me?

Thanks for a great forum!

Regards

//Emil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top