ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform to size to display (https://www.excelbanter.com/excel-programming/395709-userform-size-display.html)

Jason V[_2_]

Userform to size to display
 
I have a form called FormLOB. I have two monitors going (laptop and 21") with
different resoultions. I want my form to cover the entire screen on both.
How do I size this?
Any help please
--
Jason V

JLGWhiz

Userform to size to display
 
Assuming you are only going to cover the worksheet with the form, you might
be able to use something like this.

Sub scrnsz()
x = Application.UsableHeight
y = Application.UsableWidth
MsgBox "Height is " & x & vbCrLf & "Width is" & y
End Sub

"Jason V" wrote:

I have a form called FormLOB. I have two monitors going (laptop and 21") with
different resoultions. I want my form to cover the entire screen on both.
How do I size this?
Any help please
--
Jason V


JLGWhiz

Userform to size to display
 
You should be able to use the msoScreenSize constants to do the job. See VBA
help file for msoScreenSize or ScreenSize.

"Jason V" wrote:

I have a form called FormLOB. I have two monitors going (laptop and 21") with
different resoultions. I want my form to cover the entire screen on both.
How do I size this?
Any help please
--
Jason V



All times are GMT +1. The time now is 12:35 PM.

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