Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to clear an Excel Worksheet 1

Status
Not open for further replies.

campbere

Technical User
Oct 10, 2000
146
US
I have figured out to write data out to an Excel Spreadsheet but now I want to clear the worksheet(s) everytime before writing out any data to it. Can someone tell me how to do this?

 
You can use the ClearContents method.
Code:
Worksheets("Sheet1").Range("A1:G37").ClearContents
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top