Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open a form maximized


hello i have been searching and searching,
but can't find anything about opening a form maximized.

can anyone tell how to do this?


--
eyesonly1965
------------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199
View this thread: http://www.excelforum.com/showthread...hreadid=539653

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default open a form maximized

You can make the userform larger, but it isn't a zoom type operation - the
controls on the form will not resize:

Sub UserForm_Activate()
With Application
'maximize Excel
.WindowState = xlMaximized
Me.Top = .Top
Me.Left = .Left
Me.Height = .Height
Me.Wdith = .Width
End With
End Sub


Sub FormFit()
UserForm1.Show
End Sub


The above assumes excel is maximized. (I added code to maximize it)


The activate event is in the Userform code module.

--
Regards,
Tom Ogilvy



"eyesonly1965" wrote:


hello i have been searching and searching,
but can't find anything about opening a form maximized.

can anyone tell how to do this?


--
eyesonly1965
------------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199
View this thread: http://www.excelforum.com/showthread...hreadid=539653


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default open a form maximized

Here is one from Chip Pearson:

With Application
UserForm1.Move .Left, .Top, .Width, .Height
End With
UserForm1.Show

Note that both of the suggestions size the useform - they don't make it a
maximized window which would need to be done using the windows API.
However, they may be sufficient for what you need.

--
Regards,
Tom Ogilvy







"Tom Ogilvy" wrote:

You can make the userform larger, but it isn't a zoom type operation - the
controls on the form will not resize:

Sub UserForm_Activate()
With Application
'maximize Excel
.WindowState = xlMaximized
Me.Top = .Top
Me.Left = .Left
Me.Height = .Height
Me.Wdith = .Width
End With
End Sub


Sub FormFit()
UserForm1.Show
End Sub


The above assumes excel is maximized. (I added code to maximize it)


The activate event is in the Userform code module.

--
Regards,
Tom Ogilvy



"eyesonly1965" wrote:


hello i have been searching and searching,
but can't find anything about opening a form maximized.

can anyone tell how to do this?


--
eyesonly1965
------------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...o&userid=34199
View this thread: http://www.excelforum.com/showthread...hreadid=539653


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default open a form maximized


thanx this is excactly what i was looking for.
it works just fine now

--
eyesonly196
-----------------------------------------------------------------------
eyesonly1965's Profile: http://www.excelforum.com/member.php...fo&userid=3419
View this thread: http://www.excelforum.com/showthread.php?threadid=53965

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
I want Word & Excel to open maximized. highbloodpressure Excel Discussion (Misc queries) 1 November 7th 08 08:29 PM
Open Browser Maximized Stephen Newman Excel Programming 4 April 17th 06 11:54 PM
File Open Box Suddenly Maximized ChelseaWarren Excel Worksheet Functions 2 February 10th 06 12:16 AM
How do I get excel to always open with a maximized window Stacymm Excel Discussion (Misc queries) 1 February 10th 05 10:07 PM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"