+ Reply to Thread
Results 1 to 3 of 3

Thread: How to identify the name of a dropdown box?

  1. #1
    Registered User
    Join Date
    09-13-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Red face How to identify the name of a dropdown box?

    Hi, there
    I have a spreadsheet with a dropdown boxe in there. How do I identify the name of it to be able to use some VBA code to set the the dropdown box to a certain value when I click a button. Please see the attached file to have a better understanding what I would like to do. Thanks a lot.

    Regards,
    Lily
    Attached Files Attached Files
    Last edited by SpringLily; 11-09-2010 at 04:51 AM. Reason: Solved!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: How to identify the name of a dropdown box?

    You can select the dropdown control and see the name in the Name box, next to the formula bar.

    Sub InitialAll_Click()
    ' Clear all Green Guide sheet
    
    ' select first item in list
        ActiveSheet.Shapes("Drop Down 1").ControlFormat.Value = 1
    '
    End Sub
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-13-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: How to identify the name of a dropdown box?

    Thanks a lot. Andy. Regards, Lily.

+ 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.2.0