VBA · Ranges
Clear methods
ClearContents removes values, ClearFormats removes formatting, Clear removes both.
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.
$99/mo, everything included. Free for 14 days, no card.
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.