ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   UserForm when opening workbook will not fill screen (https://www.excelbanter.com/excel-programming/354627-userform-when-opening-workbook-will-not-fill-screen.html)

Anna B

UserForm when opening workbook will not fill screen
 
I have a user form that I want to have open when

Anna B

UserForm when opening workbook will not fill screen
 
Sorry, let me try this again. I have a userform that I want to have open
when the workbook opens. I have managed to do this, but the form only fills
up part of the screen. Is there a way to make it fill up the whole screen?
Thanks for your help.

"Anna B" wrote:

I have a user form that I want to have open when


Ron de Bruin

UserForm when opening workbook will not fill screen
 
Hi Anna

You can use this event in the userform

Private Sub UserForm_Initialize()
With Application
Me.Top = .Top
Me.Left = .Left
Me.Height = .Height
Me.Width = .Width
End With
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Anna B" wrote in message ...
Sorry, let me try this again. I have a userform that I want to have open
when the workbook opens. I have managed to do this, but the form only fills
up part of the screen. Is there a way to make it fill up the whole screen?
Thanks for your help.

"Anna B" wrote:

I have a user form that I want to have open when




davesexcel[_21_]

UserForm when opening workbook will not fill screen
 

go back into visual basics click on the userform and click on the
diamonds on the sides and stretch it out till it is as big as you want
it, there are lots of papers on doing this with a code but I can't find
it in my library at the moment


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=517426


Anna B

UserForm when opening workbook will not fill screen
 
Thank you both, either option works great!



"davesexcel" wrote:


go back into visual basics click on the userform and click on the
diamonds on the sides and stretch it out till it is as big as you want
it, there are lots of papers on doing this with a code but I can't find
it in my library at the moment


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=517426




All times are GMT +1. The time now is 02:50 AM.

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