Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UserForm positioning

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


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default UserForm positioning

Chip Pearson has a page that positions a form by cell position. Try that
http://www.cpearson.com/excel/FormPosition.htm

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Emil " wrote in message
...
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


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment Box Positioning Q Sean Excel Worksheet Functions 1 March 17th 07 05:03 PM
What is absolute positioning? Adonai New Users to Excel 2 February 23rd 07 06:28 PM
Positioning a DOS Window Robin Clay[_3_] Excel Programming 4 August 13th 04 12:30 AM
= positioning snax500[_2_] Excel Programming 1 June 28th 04 08:24 PM
msgbox positioning Wild Bill[_2_] Excel Programming 4 August 28th 03 06:08 PM


All times are GMT +1. The time now is 09:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"