vbaResearch
New Member
- Joined
- Feb 4, 2022
- Messages
- 12
- Office Version
- 2016
- Platform
- Windows
Hello forum,
my display is 1980x1080
When I set UserForm1.Left = 0 it goes fine to the left of the screen, but... what is going next I do not understand...
The center of the screen should be ".Left = 960"
But when I set it to 960, the userform appears about 200 or 300 pixels further from the display center.
Then I found out that maximum value of left property which provides at least left edge visible on the screen is 1470. Why 1470???
My display is 1980 pixels wide, but form hides from the screen when value is greater than 1470. (As if there was a problem with scaling or something, but what if I open it on another PC with another display size)
So the question is why userforfm hides when left is more than 1470 but not 1980?
my display is 1980x1080
When I set UserForm1.Left = 0 it goes fine to the left of the screen, but... what is going next I do not understand...
The center of the screen should be ".Left = 960"
But when I set it to 960, the userform appears about 200 or 300 pixels further from the display center.
Then I found out that maximum value of left property which provides at least left edge visible on the screen is 1470. Why 1470???
My display is 1980 pixels wide, but form hides from the screen when value is greater than 1470. (As if there was a problem with scaling or something, but what if I open it on another PC with another display size)
So the question is why userforfm hides when left is more than 1470 but not 1980?