Clearcontents

  • Thread starter Caroline Vincent
  • Start date
C

Caroline Vincent

Does anyone know how to clear the content of a range
without deleting the formulae?
Range(XXX).clear or Range(XXX).clearcontents delete the
formulae as well.
Thanks
 
H

Harald Staff

Range("A1:D500").SpecialCells(xlCellTypeConstants, 23).ClearContents

Explore more on possibilities using the Edit > Goto > Special menu while
recording macros.

HTH. best wishes Harald
 
C

caroline vincent

Good tip. it works. thanks a lot
-----Original Message-----

Range("A1:D500").SpecialCells(xlCellTypeConstants, 23).ClearContents

Explore more on possibilities using the Edit > Goto > Special menu while
recording macros.

HTH. best wishes Harald

"Caroline Vincent" <[email protected]> skrev i melding



.
 
Top