Delete all data on Worksheet?

  • Thread starter Thread starter HotRod
  • Start date Start date
H

HotRod

Is there a better way to delete all the data on a worksheet than.

Application.Worksheets("WORKSHEET").Range("A1", "Z55500").Value = ""
 
Is there a better way to delete all the data on a worksheet than.

Application.Worksheets("WORKSHEET").Range("A1", "Z55500").Value = ""

Quick'n'dirty:

Application.Worksheets("WORKSHEET").Delete
Application.Worksheets.Add("WORKSHEET")
 
ActiveSheet.Cells.ClearContents

OR specific sheet

Sheets("Sheetname").Cells.ClearContents


Gord Dibben MS Excel MVP
 
Thanks Gord This is what I needed "Sheets("WORKSHEET").Cells.ClearContents"
 

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