0
Thanks

A few words of thanks would be greatly appreciated.

Excel - Clear the contents of specific cells




Issue


I have 6 cells with dropdowns list and they are selected each time. I wish I could have a reset button for the last entry for 6 cells(to clear them) but of course keeping the other items in my lists untouched.

Solution


Here is a code to erase your cells maintaining lists of validations

Private Sub CommandButton1_Click()  
[A14:F14].ClearContents  
End Sub 

Notes


Thanks to Mike-31 for this tip.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Related

This document, titled « Excel - Clear the contents of specific cells », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments