• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Clear Content on Dropdown List

I have the following code which hides and shows a dropdown box dependant on the value in a cell. I would like the drop down box to be cleared if the option is changed.

If Sheet8.Range("B3").Value = 2 Then

Sheet1.Shapes.Range("Drop Down 3281").Visible = msoTrue
Sheet1.Shapes.Range("Drop Down 3282").Visible = msoFalse
Sheet1.Range("Drop Down 3282").ClearContents
Else
Sheet1.Shapes.Range("Drop Down 3281").Visible = msoFalse
Sheet1.Range("Drop Down 3281").ClearContents
Sheet1.Shapes.Range("Drop Down 3282").Visible = msoTrue
End If
 
Back
Top