Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is there a way in which I can auto-size a userform to fit the whole screen , dependent on moniter size. regards John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should maximize de Userform's dimension within Excel Window:
Private Sub UserForm_Initialize() Me.Height = Application.Height Me.Width = Application.Width End Sub HTH, -- AP a écrit dans le message de ups.com... Hi, Is there a way in which I can auto-size a userform to fit the whole screen , dependent on moniter size. regards John |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi John,
Try: '============= Private Sub UserForm_Initialize() Application.WindowState = xlMaximized With Application Me.Top = .Top Me.Left = .Left Me.Height = .Height Me.Width = .Width End With End Sub '<<============= --- Regards, Norman wrote in message ups.com... Hi, Is there a way in which I can auto-size a userform to fit the whole screen , dependent on moniter size. regards John |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks
This works great, however on one of my forms I have a listbox, I have added the code to this form, but it makes the form to big, any ideas John |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Forget the last post I have sorted it now, thanks guys great advice
John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto size a pivot table to a page size | Excel Worksheet Functions | |||
Auto size help | Excel Discussion (Misc queries) | |||
Auto size help | Excel Programming | |||
GetSystemMetrics32() [Screen Size and UserForms - pt 2] | Excel Programming | |||
Screen Size and UserForms | Excel Programming |