+ Reply to Thread
Results 1 to 4 of 4

User form box too small to use - HELP

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    User form box too small to use - HELP

    when i run the userform control the popup box is too small to actually use the form. code attached and picture. please help!! using Excel 2013

    pics attached are the "box" when i run the code and also pic of the objuectuserform object.JPGsmall userform.JPG


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: User form box too small to use - HELP

    These subs need to be in the userform's code module and not a standard module.
    Please Login or Register  to view this content.
    The only code that you have there that controls the size and position of the userform is
    Please Login or Register  to view this content.
    If you put a breakpoint on the line that says
    Please Login or Register  to view this content.
    and then step through you'll see that the userform changes size and location once the initialize sub ends. If you have other code that you haven't posted, could that be changing the values again? Stepping through your code should enable you to see which code is running when the userform loads.
    Please click *Add Reputation if I've helped

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    calgary, canada
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: User form box too small to use - HELP

    so interestingly enough - i just opened the file in another laptop and the userform came up and was the entire display - no problems at all. i am guessing it is a problem with my display settings? anyone have an idea as to what to check

  4. #4
    Forum Contributor
    Join Date
    05-27-2014
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    2007 & 2010
    Posts
    273

    Re: User form box too small to use - HELP

    Why don't you use VBA to query the values of application.height and application.width and see if that throws anything up. I noticed that when I mocked up a userform and used your initialize code, the form limits at the right and bottom were off the screen, whereas my maximised Excel application was not. Perhaps your original computer can't handle instructions to display something outside the limits of the screen. What happens when the Excel application is not covering the entire screen and you load the userform? Based on your code I would expect that no matter where the Excel window is located on the screen, the userform should display in the top left corner of your screen and be the same size as your Excel window. Is that what happens?

+ 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] User-Form Problem: User can select headers in User Form (I want Header/no way to select)
    By navialivad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2014, 10:24 AM
  2. [SOLVED] Small help with user form to create a database
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-21-2013, 10:47 PM
  3. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  4. [SOLVED] Excel vba user form- open directly to user form not worksheet
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-24-2013, 05:07 PM
  5. [SOLVED] Excel user form- If/Then statement outcome to show on user form
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:16 AM
  6. Help on very small user form
    By ronlaboa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2012, 03:20 AM
  7. Print preview from user form opened from a user form
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2011, 05:12 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