Consulting

Results 1 to 5 of 5

Thread: Solved: Object Positioning

  1. #1
    VBAX Newbie
    Joined
    Jul 2006
    Posts
    3
    Location

    Solved: Object Positioning

    I'm working on a form that is designed to keep track of a non-standard service request (a standard request would entered into our regular database). For 11 different reasons, we may have to create a non-standard request, and we need to be able follow it to closure, and also make sure it goes through the whole process of getting entered our database (after going through several checks, of which this is number one). The form that I am completing now used to be 4 different forms. But, I am feeling a little crazy this weekend, and figured there should be a way to make them into one (BWA HA HA said the evil scientist!).

    Anyway, the user is required to choose one of the 11 reasons for the non-standard request, and press a button which sets the form (basically hides/unhides lines that the user is required to fill for that particular option). The user also has the ability to reset the form (if they choose the wrong option) or clear the form. Once the form is filled, the user presses a submit button to send it to another department for processing. Once that department is done, they press a fifth button to return to my department for closure. The problem occurs with one of the options. It hides the majority of the lines, and also hides one of the buttons. When the form is cleared, the button is way out of position from where I want it. I have tried locking it and everything else, but is there a code to to keep an object at a particular postion, even though it is hidden?

    Thank you all in advance!
    Tirhana

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Is there any way you could post a sanitized version of your workbook so we could see how your hiding things, etc.....?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Tirhana,
    Welcome to VBAX
    You seem to have done the normal things. Have you tried adding code to set the position when you unhide it?
    If you can post a copy of the form (Go Advanced/Manage Attachments), that might help.
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4
    VBAX Newbie
    Joined
    Jul 2006
    Posts
    3
    Location
    I can prep a sample, but I actually solved the problem in a different way. Previously, the button causing my issues was third a vertical stack of three. By making the buttons horizonal to each other, everything worked (diasppeared and reappeared as I wanted). Let me know, and I put one together if someone wants an early morning challenge!

    I do want to say I have been lurking on this site for well over a year now. I started with NO coding knowledge, except for some macros on a form that no one was using anymore. I finally figured out what it all meant, and went onto "Wow, I wonder if I make the form do this..." This site has probably been responsible for 90% of everything I can do now, and I just wanted to say thanks!

  5. #5
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    No need to lurk, we're all quite friendly here. So if you need any assistance, just ask. And if you can help out, please feel free.
    Regards
    MD
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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