+ Reply to Thread
Results 1 to 7 of 7

VBA Userform Zoom Problem

  1. #1
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    VBA Userform Zoom Problem

    When I set the zoom size to less than 100 on my USERFORMs, the controls all resize in font, height, width, and position but the form itself does not resize. There is blank form areas to the right and below all of the controls. Is this another Excel 2016 September update bug like the control transparency? I can't find any reference to this problem on the internet.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Userform Zoom Problem

    Hello EssoExplJoe,

    Could you show us your Code for this issue, please?
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    Re: VBA Userform Zoom Problem

    Userform.Zoom = 80. This resizes all of the fonts, widths, heights, left, and tops for all controls but doesn't resize the form itself. See below image:

    Capture.JPG

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Userform Zoom Problem

    Hello EssoExplJoe,

    Leith Ross came up with this solution way back when I was battling the same issue;

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Please try it, and Rep Leith for his brilliance!

    Regards.

  5. #5
    Forum Contributor
    Join Date
    07-23-2016
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    273

    Re: VBA Userform Zoom Problem

    Your MakeFormResizable works great and I have added to my collection of API controls for future use. However, I do not want the user to re-esize the forms so I have added the below code to my resizing routine where I set the type ZoomSetting based on the screen size, etc.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Userform Zoom Problem

    Hello EssoExplJoe,

    Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.


    Thanks.

  7. #7
    Registered User
    Join Date
    11-14-2017
    Location
    Paris
    MS-Off Ver
    2016
    Posts
    1

    Re: VBA Userform Zoom Problem

    I am encountering a similar problem but Winon's code seem incomplete, because EssoExplJoe is referring to some code lines that I don't see in Winon's code.
    I also don't see what part of Winon's code changes the UserForm size/zoom

+ 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. zoom problem in chart as worksheet
    By aochan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2016, 08:36 PM
  2. Zoom plot in image control box present in the userform
    By HinaSha in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-04-2014, 12:26 AM
  3. Conditional Page breaks problem with print scaling/zoom
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2013, 11:44 AM
  4. [SOLVED] Userform called from another userform textbox - unload problem
    By barryleajo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-27-2013, 01:09 PM
  5. zoom userform
    By madhg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2009, 07:35 AM
  6. [SOLVED] Pagebreak and Zoom problem
    By JON JON in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2006, 07:50 AM
  7. Scroll/Zoom Chart Bar Problem
    By aldsv in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-03-2005, 09:55 AM

Tags for this Thread

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