+ Reply to Thread
Results 1 to 6 of 6

How to reference a drop down?

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    United States - California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question How to reference a drop down?

    I have this basic spreadsheet with a single drop down. Depending on what I select in the drop down, I want to change the value of a cell.

    I am having a basic lack of understanding with just finding the object qualifier for the drop down.

    I tried ListBox1.value and ComboBox1.value, but I get error 424 - Object required.

    Sub DropDown3_Change()
    MsgBox "Hello world!"
    MsgBox ListBox1.Value
    End Sub

    Instead of ListBox1, what should I be using to reference the drop down that is on my spreadsheet? Note that the name of my list box is DropDown3

    Thanks, Bij
    Last edited by bijalds; 07-07-2009 at 06:21 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to reference a drop down?

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then edit your post to add code tags.

    Thanks.

    The drop-down is from the Forms toolbar or the Control Toolbox?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-07-2009
    Location
    United States - California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to reference a drop down?

    I am using Excel 2007. Once the Developer tab is enabled, I basically click on the Insert button to select a Form Control. Therefore, it's unclear to me if this is form control or control toolbar.

    Thanks, Bij

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to reference a drop down?

    Please Login or Register  to view this content.
    Please edit your post to add code tags.

  5. #5
    Registered User
    Join Date
    07-07-2009
    Location
    United States - California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How to reference a drop down?

    Works! Thank you!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to reference a drop down?

    You're welcome.

    Third request that you add code tags to your original post, please.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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