Full Screen display of a Userform

  • Thread starter Thread starter Legacy 167133
  • Start date Start date
L

Legacy 167133

Guest
Hi everyone,

I have a large workbook that displays a Userform on screen with a progressbar while the workbook loads. On my PC the Userform displays "Full Screen", while on different screens of other users it displays differently. Everone using the workbook does so with Office 2007 on Windows xp. Is there some VBA code I could use to "Automatically" set the Userform to Display the Full Screen of any monitor?

Thank you !:confused:
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Why not use the Width & Height property for sheet - I did not test this - just a suggestion.

Code in sheet or module
Code:
UserFormName.Width = ActiveSheet.Width
UserFormName.Height = ActiveSheet.Height


Code ThisworkBook
Code:
Private Sub Workbook_WindowResize(ByVal Wn As Window)
     UserFormName.Width = ThisWorkBook.Width 
     UserFormName.Height = ThisWorkBook.Height
End Sub
 
Upvote 0
Thank you so much VoG,

It seems to be working well, after testing it on two other monitors!:)
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top