Make a userform- Full screen excel vba

If you want to auto fit the userform with your windows screen, try this below code
 Configure the userform size based on screen size. if you are looking forward to set userform always fits the screen, then you can use this code. Application.windowsState helps you to fit your userform

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

If you are a beginner in excel vba you can coments or share your feedback or queries.

For Supports and Feedback :

Contact or share your valuable feedback so that I can share you more better content.

No comments:

Post a Comment