+ Reply to Thread
Results 1 to 2 of 2

Userform Controls Postion

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    Aeizona
    MS-Off Ver
    2010
    Posts
    3

    Userform Controls Postion

    Hello experts,
    I have a dynamic userfom that I'd like to use code to position the controls based on values in worksheet. If a cell meets a given condition the corresponding control on the userform is visible or not. I am using two frames to group all controls with depending on the type of data they represent.

    As controls are hidden I'd like shrink the userform and frames, I can do this on my own. What I don't know is if it's possible to have the control be positioned relative to another?

    I.E........Frame 2 top height some distance from the bottom of frame 1...........

    That way as the controls are hidden and the userform and frames shrink in size the distance between remains the same.

    Thanks in advance,

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Userform Controls Postion

    Please Login or Register  to view this content.
    I'd usually define the 'Margin' as a Constant to make it easier to experiment with different gaps between controls.
    Last edited by cytop; 10-13-2016 at 02:40 AM.

+ 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] Looping Through Userform Controls
    By omagoodness in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-23-2016, 02:45 PM
  2. [SOLVED] Userform Controls shortcut - close userform by escape key
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2014, 06:23 PM
  3. Userform additional controls
    By tradinup2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 10:48 AM
  4. Which controls would be best to use for this Userform?
    By Kr4ftw3rk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-24-2008, 09:50 AM
  5. UserForm Controls
    By newbie13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 05:37 AM
  6. userform controls
    By natanz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2005, 06:20 PM
  7. Adding controls to userform
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2005, 08:06 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