• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Userform controls autofit to screen size

Villalobos

Active Member
Hello,

I try to build up a user friend userform from the screen point of view, my target is that the userform controls autofit to the screen size. Is there any kind of way to do this?
 
Hi,

If you mean to say userform with full screen then copy paste below code inside the userform code.

Code:
Private Sub UserForm_Initialize()
  With Application
  .WindowState = xlMaximized
  Zoom = Int(.Width / Me.Width * 100)
  Width = .Width
  Height = .Height
  End With
End Sub
 
Back
Top