+ Reply to Thread
Results 1 to 7 of 7

Conditional code when drop down has been activated

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    6

    Conditional code when drop down has been activated

    Trying to write code so that a shape moves when the drop down menu has been selected.

    Basically I want a flag to appear underneath the drop box, but I only want the flag to "drop down" when the combobox drop down list has been selected, ie. when the user presses teh arrow to display the drop down list, the flag will be under the combobox list.

    I'm having trouble with this as I can't find anyway for excel to know if the dropdown list specifically has been clicked, it only seems to react if the combobox has been selected or a value in the drop down list clicked.

    Please respond with any ideas, or ask for more clarification of problem.

    Cheers!
    Last edited by EngineeringScientist; 09-04-2012 at 10:21 AM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Conditional code when drop down has been activated

    Maybe you could expound upon why?

    What are trying to achieve with this flag?

    What is it supposed to represent to the user?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-03-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Conditional code when drop down has been activated

    I am designing an archery shop as part of a university group project.

    I am designing the arrows section of the shop.

    My idea is to have a big arrow with drop down menus attached, for selecting different properties of the arrows. My plan is to have the user click on the drop down menus and flags to fall down behind the drop down list.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Conditional code when drop down has been activated

    Okay, sounds like an industrious project and quite honestly I have no idea.

    Let me ping the real professionals and see if they have some thoughts...

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Conditional code when drop down has been activated

    if you use an activex combobox it has a dropbuttonclick event you might use or you could use a listview control with pictures assigned to the items
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Registered User
    Join Date
    09-03-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Conditional code when drop down has been activated

    Thanks! That's exactly what I needed.

    Got it working now.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Conditional code when drop down has been activated

    Many thanks to JosephP...

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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