MPW
Well-known Member
- Joined
- Oct 7, 2009
- Messages
- 571
- Office Version
- 365
- Platform
- Windows
Hello,
I have used some API code that I pirated off the web years ago and adapted it to display a full screen userform on a 2nd remote monitor.
This worked flawlessly until, laptop default settings began to drift. For years, they recommended (100%), now however they are shipping out 125% or 150%.
This has caused my 2nd display to extend past the edge of the monitor. I did find one post that could accurately deliver the dpi equivalents i.e.
The problem with this code is it does not track if the zoom is changed unless the system is restarted. This forces the user to restart every time a change is made.
My question: Is there a method to refresh the zoom variable if the workbook is closed and reopened? or better yet every time the userform is opened/showed?
My other question is that I am using a select case statement to resize the 2nd monitor userform. Just wonder if there is a dynamic way to apply the right width? This is important because there are times that monitors are switched out with different sizes.
I did not include any of the code since the one that posted it recognized the fact that it would not refresh. If needed I can post the code. One last thing, The properties left, top, and height are fine, it is only the width that I am struggling with. Hopefully this has a makes sense and has a good answer. Thanks for what you do.
I have used some API code that I pirated off the web years ago and adapted it to display a full screen userform on a 2nd remote monitor.
This worked flawlessly until, laptop default settings began to drift. For years, they recommended (100%), now however they are shipping out 125% or 150%.
This has caused my 2nd display to extend past the edge of the monitor. I did find one post that could accurately deliver the dpi equivalents i.e.
Rich (BB code):
- 96 – Smaller 100%
- 120 – Medium 125%
- 144 – Larger 150%
My question: Is there a method to refresh the zoom variable if the workbook is closed and reopened? or better yet every time the userform is opened/showed?
My other question is that I am using a select case statement to resize the 2nd monitor userform. Just wonder if there is a dynamic way to apply the right width? This is important because there are times that monitors are switched out with different sizes.
I did not include any of the code since the one that posted it recognized the fact that it would not refresh. If needed I can post the code. One last thing, The properties left, top, and height are fine, it is only the width that I am struggling with. Hopefully this has a makes sense and has a good answer. Thanks for what you do.