Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing and Printing a UserForm [email protected] Excel Programming 3 April 19th 07 06:14 PM
auto-resizing UserForm window NickHK Excel Programming 2 January 11th 07 08:02 AM
auto-resizing UserForm window John Bundy Excel Programming 0 January 10th 07 05:15 PM
Resizing Userform to screen size Al@n Excel Programming 2 January 15th 06 09:26 PM
Userform resizing lmarks Excel Programming 5 August 4th 04 06:56 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"