PC Review


Reply
Thread Tools Rate Thread

Auto-size the UserForm with Monitor Configuration

 
 
Eddie_SP
Guest
Posts: n/a
 
      14th Jul 2009
Hi Community !

I have an UserForm that will fill the whole screen.
I don't want to show the sheet as "background". I have my company logo as
background with many CommandButtons on the UserForm.

The problem is that when I open the file in my laptop, due to the laptop
configuration, it gets smaller.

Question is:

Is there any command to "auto-size" this UserForm in anywhere I open this
file?

Another question:

Can someone give the command for Print View by using a commandbutton? I have
this:

Private Sub CommandButton6_Click()
ActiveWindow.SelectedSheets.PrintPreview
End Sub

But it bugs excel freezing all panes.

Thank you in advance !!!
 
Reply With Quote
 
 
 
 
Jim Cone
Guest
Posts: n/a
 
      14th Jul 2009
Re: "Is there any command to "auto-size" this UserForm in anywhere I open this file?"
'--
Private Sub UserForm_Initialize()
Me.Height = Application.Height
Me.Width = Application.Width
End Sub
'--
You also may ? want to set the Application.WindowState to
xlMaximized or xlNormal
--
Jim Cone
Portland, Oregon USA




"Eddie_SP"
<(E-Mail Removed)>
wrote in message
Hi Community !

I have an UserForm that will fill the whole screen.
I don't want to show the sheet as "background". I have my company logo as
background with many CommandButtons on the UserForm.
The problem is that when I open the file in my laptop, due to the laptop
configuration, it gets smaller.
Question is:
Is there any command to "auto-size" this UserForm in anywhere I open this
file?
Another question:
Can someone give the command for Print View by using a commandbutton?
I have this:

Private Sub CommandButton6_Click()
ActiveWindow.SelectedSheets.PrintPreview
End Sub

But it bugs excel freezing all panes.
Thank you in advance !!!
 
Reply With Quote
 
Eddie_SP
Guest
Posts: n/a
 
      15th Jul 2009
Jim, great job !!!

Thank you very much !!!

Eddie - Sao Paulo - Brazil


"Jim Cone" wrote:

> Re: "Is there any command to "auto-size" this UserForm in anywhere I open this file?"
> '--
> Private Sub UserForm_Initialize()
> Me.Height = Application.Height
> Me.Width = Application.Width
> End Sub
> '--
> You also may ? want to set the Application.WindowState to
> xlMaximized or xlNormal
> --
> Jim Cone
> Portland, Oregon USA
>
>
>
>
> "Eddie_SP"
> <(E-Mail Removed)>
> wrote in message
> Hi Community !
>
> I have an UserForm that will fill the whole screen.
> I don't want to show the sheet as "background". I have my company logo as
> background with many CommandButtons on the UserForm.
> The problem is that when I open the file in my laptop, due to the laptop
> configuration, it gets smaller.
> Question is:
> Is there any command to "auto-size" this UserForm in anywhere I open this
> file?
> Another question:
> Can someone give the command for Print View by using a commandbutton?
> I have this:
>
> Private Sub CommandButton6_Click()
> ActiveWindow.SelectedSheets.PrintPreview
> End Sub
>
> But it bugs excel freezing all panes.
> Thank you in advance !!!
>

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      15th Jul 2009
You are welcome.
--
Jim Cone
Portland, Oregon USA



"Eddie_SP" <(E-Mail Removed)>
wrote in message
Jim, great job !!!
Thank you very much !!!
Eddie - Sao Paulo - Brazil




"Jim Cone" wrote:
> Re: "Is there any command to "auto-size" this UserForm in anywhere I open this file?"
> '--
> Private Sub UserForm_Initialize()
> Me.Height = Application.Height
> Me.Width = Application.Width
> End Sub
> '--
> You also may ? want to set the Application.WindowState to
> xlMaximized or xlNormal
> --
> Jim Cone
> Portland, Oregon USA






> "Eddie_SP"
> <(E-Mail Removed)>
> wrote in message
> Hi Community !
>
> I have an UserForm that will fill the whole screen.
> I don't want to show the sheet as "background". I have my company logo as
> background with many CommandButtons on the UserForm.
> The problem is that when I open the file in my laptop, due to the laptop
> configuration, it gets smaller.
> Question is:
> Is there any command to "auto-size" this UserForm in anywhere I open this
> file?
> Another question:
> Can someone give the command for Print View by using a commandbutton?
> I have this:
>
> Private Sub CommandButton6_Click()
> ActiveWindow.SelectedSheets.PrintPreview
> End Sub
>
> But it bugs excel freezing all panes.
> Thank you in advance !!!
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Monitor Configuration Starfish Windows XP Video 0 11th Dec 2008 08:22 PM
resize userform image to fit on any monitor timspier Microsoft Excel Programming 1 5th Aug 2006 06:44 AM
MMC 9.13 and monitor configuration. DaWalRus ATI Video Cards 0 11th May 2006 12:16 PM
TFT Monitor Configuration Alias Windows XP Hardware 3 17th Aug 2005 12:03 PM
monitor configuration =?Utf-8?B?MQ==?= Windows XP General 2 17th Mar 2005 01:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 PM.