MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

How can i get the Resolution of the screen?

  Asked By: Thelma    Date: Oct 05    Category: MS Office    Views: 1052

I'm making a userform in Excel which is big as fullscreen. I need to know the
resolution of the screen. I mean if i make it for 1024x768,then user won't see
all in 800x600 resolution. Is there anybody who knows the answer? Must i use



2 Answers Found

Answer #1    Answered By: Laurie Lawrence     Answered On: Oct 05

Not exactly what you describe (Full Screen), but this code (placed in the
UserForm_Initialize module) will make the form the same size as the active EXCEL

' Size the window to match size of EXCEL window
With Application
Me.Top = .Top
Me.Left = .Left
Me.Height = .Height
Me.Width = .Width
End With

Answer #2    Answered By: Madaniyah Malik     Answered On: Oct 05

I think you'll have to use API. See

Didn't find what you were looking for? Find more on How can i get the Resolution of the screen? Or get search suggestion and latest updates.