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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing a sheet programmatically

Status
Not open for further replies.

marct

Programmer
Apr 6, 1999
32
US
Hi,<br><br>I need to clear an entire worksheet with VBA in excel. What is the easiest way to do this?<br><br>Thanks in advance,<br><br>Marc
 
Simple methods:<br>&nbsp;&nbsp;&nbsp;&nbsp;Range(&quot;A2:F5000&quot;).Delete Shift:=xlUp (depends on last column)<br>or (Ctrl-A & Edit&gt;Clear&gt;All)<br>&nbsp;&nbsp;&nbsp;&nbsp;Cells.Select<br>&nbsp;&nbsp;&nbsp;&nbsp;Selection.Clear<br>&nbsp;&nbsp;&nbsp;&nbsp;Range(&quot;A1&quot;).Select<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top