Clearcontents

  • Thread starter Thread starter Caroline Vincent
  • Start date 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
 
Range("A1:D500").SpecialCells(xlCellTypeConstants, 23).ClearContents

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

HTH. best wishes Harald
 
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



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top