Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Delete all data on Worksheet?

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

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Delete all data on Worksheet?

On May 15, 2:29 pm, "HotRod" wrote:
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")

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Delete all data on Worksheet?

ActiveSheet.Cells.ClearContents

OR specific sheet

Sheets("Sheetname").Cells.ClearContents


Gord Dibben MS Excel MVP

On Tue, 15 May 2007 14:29:19 -0400, "HotRod" wrote:

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

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


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Delete all data on Worksheet?

Thanks Gord This is what I needed "Sheets("WORKSHEET").Cells.ClearContents"


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete rows of data permanently from a worksheet after filt John Roberts New Users to Excel 2 September 12th 09 11:23 PM
Can I delete the data and keep formulas for a whole worksheet? Annette Excel Worksheet Functions 2 May 13th 09 06:26 PM
How do I delete data in worksheet, but not the associated formula cganno Excel Worksheet Functions 7 December 18th 08 01:32 AM
Delete all data on a worksheet shiro Excel Worksheet Functions 4 January 22nd 08 06:10 AM
how do I delete data from a worksheet without deleting the formul. Jack Excel Discussion (Misc queries) 1 February 17th 05 01:25 AM


All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"