How do i setup a macro to clear cells in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
TimTam, something like this,

Sub Clear_Range()
Range("A1,A5,A10,A15,D1:D4,F2").ClearContents
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
sub ClearStuff
sheets("Sheet1").range("A1:A10, B3, C5:D6").clearcontents
end sub

Just change the "A1:A10, B3, C5:D6" to what ever range you need...
 

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