Resizing Userform to screen size

  • Thread starter Thread starter Al@n
  • Start date Start date
A

Al@n

Hi.
Please can someone tell me if it's possible, in the userform.initialize
module to resize the userform to whatever screen size the macro is being run
on. I have managed this with word macros but have little or no experience
with Excel.

Tia
Al@n

(al@n@[email protected])
remove 2 x @
 
Hi Alan,

Try:

'=============>>
Private Sub UserForm_Activate()
With Application
.WindowState = xlMaximized
Me.Top = .Top
Me.Left = .Left
Me.Height = .Height
Me.Width = .Width
End With
End Sub
'<<=============
 
Norman
Thanks for the reply..a logical way of doing it.

I was trying to asseess the horizontal and vertical resolution of the screen
in question and designing a form to those dimensions.

I will see what I can do with your code

Thanks again.

Al@n

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top