How to remove ONLY formatting of a range of cells ... that is, leave the content in a tick

I am trying to remove color from cells, but not data in cells. I have tried these 2 methods:

Sheets("Output").Range("B3:ka200").Clear
Sheets("Output").Range("B3:ka200").ClearContents

      

but both delete data. I need a method that will preserve the data and remove the formatting.

+3


source to share


2 answers


Try

Sheets("Output").Range("B3:ka200").ClearFormats

      



Please note that all formatting will be removed above

+2


source


Range("A1:C4").Interior.ColorIndex = xlNone

      



This will remove the background color of the cell.

0


source







All Articles