Clear the content of a worksheet using VBA

  • Thread starter Thread starter Shawshank
  • Start date Start date
S

Shawshank

I want to clear the content of a whole worksheet using VBA.
Does anyone know how to do it?

Thanks!
 
Try something like

Worksheets("Sheet1").Cells.Clear ' or ClearContents


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
ActiveSheet.Cells.ClearContents

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Back
Top