+ Reply to Thread
Results 1 to 5 of 5

is it possible to make the objects movable on userform when userform is loaded.

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    34

    is it possible to make the objects movable on userform when userform is loaded.

    Dear Friends,
    my task is to move the postion of radio buttons on userform after giving the input distance.
    Hope i am clear.
    thank you very much in advance.


    regards
    yeshwant.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: is it possible to make the objects movable on userform when userform is loaded.

    Hello yeshwant_sur,

    The controls can be repositioned before the UserForm is made visible (UserForm_Initialize event) or after the UserForm is displayed. This is easily done by changing the Left and Top properties of the control you wish to move. These properties are relative to the upper left corner of the UserForm which is the origin at x(0), y(0).
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: is it possible to make the objects movable on userform when userform is loaded.

    Perhaps something like this would work for you. The border can be removed at the indicated line in the sub MakeMobile, in the class module.

    Note that buttons can set to be moved en-masse or individually.
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    05-11-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: is it possible to make the objects movable on userform when userform is loaded.

    I am very much thankful to you.
    its working fine now. thanks a lot once again.
    cheers ....

    regards
    yeshwant

  5. #5
    Registered User
    Join Date
    05-11-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: is it possible to make the objects movable on userform when userform is loaded.

    I am very much thankful to you.
    its working fine now. thanks a lot once again.
    cheers ....

    regards
    yeshwant

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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