Wauvel

Excel like a finance pro.

← The library

VBA · Ranges

Clear methods

ClearContents removes values, ClearFormats removes formatting, Clear removes both.

Very commonDifficulty 950 · Capable
Practice · 2 questions →

When to use it

ClearContents removes values and formulas, ClearFormats removes formatting, Clear removes both, and Delete removes the cells themselves.

The code

Code
Range("A2:Z1000").ClearContents

Worked examples

  • Clear contents

    Range("A2:Z1000").ClearContents Values gone, formats kept

    Reset input areas.

  • Clear formats

    Range("A1").CurrentRegion.ClearFormats Formatting stripped

    Clean a pasted block.

  • Delete

    Rows(5).Delete Row 5 removed, rows below shift up

    Different from clearing.

Worth knowing

  • ClearContents is the safe default for resetting a template.
  • ClearComments, ClearHyperlinks, and ClearOutline exist too.
  • Cells.Clear resets a whole sheet.

Where it goes wrong

  • Clear on a huge range with formats is slow.
  • Delete shifts other data and breaks references; ClearContents does not.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.