[excel] Can I clear cell contents without changing styling?

Is there a way to clear the contents of multiple cells, but without changing the background/font properties of the cells?

I am currently using Range("X").Cells.Clear but its removing my background color and I would prefer not to have to "repaint" it on each clear.

This question is related to excel vba

The answer is


you can use ClearContents. ex,

Range("X").Cells.ClearContents