Consulting

Results 1 to 3 of 3

Thread: Solved: How to reset Drop-Down (combo box)

  1. #1
    VBAX Newbie
    Joined
    Aug 2011
    Posts
    4
    Location

    Solved: How to reset Drop-Down (combo box)

    Hi,

    In Excel 2007, I create some dropdown box by using Developer/Insert Combo box(Form control). It actually called 'Drop Down' in the formula bar.
    (PS. I tested insert the combo box (ActiveX control) which is called 'Combo Box' in the formula bar. )

    I know this might be a really simple and popular question. I did some search on Google but no appropriate solution up there, as most of them are for ealier version of excel. And it called 'Drop Down' rather than 'combo box'.

    To be more clear, it is not the drop down from 'data validation'. Those drop down only show the arrow when you click the cell. Drop Down button from Form control will display that arrow and you can change the height of that.

    Could someone help me with the VBA code to reset the drop down list to the first value, please?

    Thank you so much in advance.

    Regards,

    Fan

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    [vba]ActiveSheet.Shapes("Drop Down 1").ControlFormat.Value = 1[/vba]

  3. #3
    VBAX Newbie
    Joined
    Aug 2011
    Posts
    4
    Location

    Thumbs up Thank you

    Thank you, mikerickson.

    That simple code works great! Really appreciate!!

Posting Permissions

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