Resizing Userform

E

ExcelMonkey

Is it possible to resize an userform from code. That is, if I drop controls
on a form in the VBE but do not size the form, can I then resize in code at
run-time to accomodate the placement of the controls on the form?

Thanks

EM
 
N

Norman Jones

Hi ExcelMonkey,

Try something like:

'=============>>
Private Sub UserForm_Initialize()
Me.Height = 300
End Sub
'<<=============
 

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

Top