+ Reply to Thread
Results 1 to 2 of 2

userform always fits the screen

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-21-2015
    Location
    nederland
    MS-Off Ver
    2021
    Posts
    206

    userform always fits the screen

    Hello,

    I'm a begginer in VBA and I have made for a Userform to make things easier for the users. I have noticed that I have sized the userform to fit a 22 inch desktop screen but it won't fit on laptops and smaller screens.

    Is there a way so that the userform always fits the screen?

    I appreciate beforehand your attention and time.


    Kirana

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: userform always fits the screen

    Have you tried...
    Private Sub UserForm_Initialize()
    
    With Application
        Me.Top = .Top
        Me.Left = .Left
        Me.Height = .Height
        Me.Width = .Width
    End With
    
    End Sub
    Or maybe something from this post will help
    http://www.excelforum.com/excel-prog...-userform.html
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Fit screen resolution to userform
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2015, 04:29 PM
  2. [SOLVED] screen locks on userform screen sometimes
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-12-2013, 02:31 PM
  3. Centering a UserForm on Screen
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 05:21 AM
  4. Userform fit to screen
    By drvipul1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 04:07 AM
  5. Only userform display on screen
    By amolryeolekar in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-04-2012, 12:00 AM
  6. Userform Full Screen
    By zimbo109 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2010, 06:16 PM
  7. setting userform-screen fit
    By TUNGANA KURMA RAJU in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-27-2006, 01:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1