ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to position form in same place with different screen resolutions (https://www.excelbanter.com/excel-programming/297383-how-position-form-same-place-different-screen-resolutions.html)

Joe 90[_2_]

How to position form in same place with different screen resolutions
 
Hi

Have a little form I use as a popup to take user back to main worksheet. My
dev env is running at 1024x768, but users run at 800x600.

the top and left properties work from top and left, so only ever give a
relative position from top and left. So if the resolution goes down, the
form vanishes off to the right!

I don't want the popup to obscure the data/charts I am using, how can I make
it always go to a top right position, or even better inside the excel window
(below the toolbars and to the left of the vertical scroll bar).

Regards

Joe


Bob Phillips[_6_]

How to position form in same place with different screen resolutions
 
Joe,

This might be of help 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)

"Joe 90" (remove silly spam) wrote in message
...
Hi

Have a little form I use as a popup to take user back to main worksheet.

My
dev env is running at 1024x768, but users run at 800x600.

the top and left properties work from top and left, so only ever give a
relative position from top and left. So if the resolution goes down, the
form vanishes off to the right!

I don't want the popup to obscure the data/charts I am using, how can I

make
it always go to a top right position, or even better inside the excel

window
(below the toolbars and to the left of the vertical scroll bar).

Regards

Joe




Joe 90[_2_]

How to position form in same place with different screen resolutions
 
Hi Bob

I'll have a play with this, but Chip's solution only seems to apply to
positioning forms with cells. If my form, which is modeless, is open infront
of a chart, I'll have to work on the position option for that too? I guess
its all there, just have to work at it!! Thanks for your help.

Joe

"Bob Phillips" wrote in message
...
Joe,

This might be of help 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)

"Joe 90" (remove silly spam) wrote in message
...
Hi

Have a little form I use as a popup to take user back to main worksheet.

My
dev env is running at 1024x768, but users run at 800x600.

the top and left properties work from top and left, so only ever give a
relative position from top and left. So if the resolution goes down, the
form vanishes off to the right!

I don't want the popup to obscure the data/charts I am using, how can I

make
it always go to a top right position, or even better inside the excel

window
(below the toolbars and to the left of the vertical scroll bar).

Regards

Joe




Jon Peltier[_7_]

How to position form in same place with different screen resolutions
 
Joe -

To go to the top left of the screen, use cells(scrollrow, scrollcolumn)
as your base. To work around charts, use the chart object's top left
cell property. Chip's technique is very powerful and flexible; it is
intended to provide the top and left positions, but you can use just the
top, for example, and provide a left position you determine any other way.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Joe 90 wrote:

Hi Bob

I'll have a play with this, but Chip's solution only seems to apply to
positioning forms with cells. If my form, which is modeless, is open infront
of a chart, I'll have to work on the position option for that too? I guess
its all there, just have to work at it!! Thanks for your help.

Joe

"Bob Phillips" wrote in message
...
Joe,

This might be of help http://www.cpearson.com/excel/FormPosition.htm



Michel Pierron[_2_]

How to position form in same place with different screen resolutions
 
Hi Joe 90;
Roughly and simply:

Private Sub UserForm_Initialize()
Me.StartUpPosition = 0
With Application
.WindowState = xlMaximized
Dim W&: W = .Width
' Zoom factor (1024 pixels = 768 points)
Me.Zoom = CInt(100 * W / 768)
Me.Top = .Height - .UsableHeight - 22
Me.Left = W - Me.Width - 19
End With
End Sub

Regards
MP

"Joe 90" (remove silly spam) a écrit dans le message de
...
Hi

Have a little form I use as a popup to take user back to main worksheet. My
dev env is running at 1024x768, but users run at 800x600.

the top and left properties work from top and left, so only ever give a
relative position from top and left. So if the resolution goes down, the
form vanishes off to the right!

I don't want the popup to obscure the data/charts I am using, how can I make
it always go to a top right position, or even better inside the excel window
(below the toolbars and to the left of the vertical scroll bar).

Regards

Joe




Bob Phillips[_6_]

How to position form in same place with different screen resolutions
 
Joe,
He does talk about cells, but I believe that he gives you enough information
to work out how to achieve your objective. The important point about Chip's
article is that he covers all of the things you need to consider, and gives
you a download to play with.

--

HTH

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

"Joe 90" (remove silly spam) wrote in message
...
Hi Bob

I'll have a play with this, but Chip's solution only seems to apply to
positioning forms with cells. If my form, which is modeless, is open

infront
of a chart, I'll have to work on the position option for that too? I guess
its all there, just have to work at it!! Thanks for your help.

Joe

"Bob Phillips" wrote in message
...
Joe,

This might be of help 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)

"Joe 90" (remove silly spam) wrote in message
...
Hi

Have a little form I use as a popup to take user back to main worksheet.

My
dev env is running at 1024x768, but users run at 800x600.

the top and left properties work from top and left, so only ever give a
relative position from top and left. So if the resolution goes down, the
form vanishes off to the right!

I don't want the popup to obscure the data/charts I am using, how can I

make
it always go to a top right position, or even better inside the excel

window
(below the toolbars and to the left of the vertical scroll bar).

Regards

Joe







All times are GMT +1. The time now is 07:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com