LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Form resize based on screen resolution.

Using Tom's routine you may then be able to zoom the userform to an
appropriate size. To play with the UF Zoom property
create a UF with two buttons and copy this code in.

Private Sub CommandButton1_Click()
Me.Zoom = Me.Zoom * 1.1
Me.Height = Me.Height * 1.1
Me.Width = Me.Width * 1.1
End Sub

Private Sub CommandButton2_Click()
Me.Zoom = Me.Zoom / 1.1
Me.Height = Me.Height / 1.1
Me.Width = Me.Width / 1.1
End Sub

--
Jim Rech
Excel MVP
"Eric" wrote in message
...
| Does anyone know if it is possible to have VBA code check the current
setting for screen resolution and adjust the form size based on the screen
resolution? For example, I have a application I have written in Excel that
has user forms, if the screen resolution is set to 1024 x 768 the forms show
correctly, however if the screen resolution is set to 800 x 600 the form is
larger than the screen. Can this be adjusted in code?


 
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
Excel 2003 rdp screen resolution Stefan Triep Excel Discussion (Misc queries) 0 October 15th 07 12:45 PM
Screen resolution Arkimediz Excel Programming 3 April 1st 04 05:23 PM
Can the screen resolution be changed within VBA? DennisE Excel Programming 1 March 7th 04 12:16 AM
Screen Area Resolution CJ[_4_] Excel Programming 3 December 5th 03 12:37 AM


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

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"