ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Resizing Userform (https://www.excelbanter.com/excel-programming/387868-resizing-userform.html)

ExcelMonkey

Resizing Userform
 
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

Norman Jones

Resizing Userform
 
Hi ExcelMonkey,

Try something like:

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

---
Regards,
Norman


"ExcelMonkey" wrote in message
...
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





All times are GMT +1. The time now is 01:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com