Consulting

Results 1 to 3 of 3

Thread: Solved: VBA -Clearing the dropdown cells

  1. #1
    VBAX Regular
    Joined
    Jul 2009
    Posts
    37
    Location

    Solved: VBA -Clearing the dropdown cells

    Hey Everyone,

    Can someone please advise me on how to "clear" the dropdown list using a macro? For example, in cell A1 I have a data validation dropdown list, consisting of cells B1:B4, with B1 being a blank cell.

    I want to be able to with a click of a macro button to go back to B1, so that A1 has no selection in it. Hopefully that makes sense.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Assign this macro to the button

    [vba]
    Sub ClickThis()
    Activesheet.Range("A1").Value=""
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jul 2009
    Posts
    37
    Location
    Thank you! That was simpler than I thought it would be.

Posting Permissions

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