Thread: Clearing Cells
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Die_Another_Day Die_Another_Day is offline
external usenet poster
 
Posts: 644
Default Clearing Cells

Sheets("February Stats").Range("C8:R63").ClearContents

HTH

Die_Another_Day
Andyd74 wrote:
Hi,

I want to clear some cells within another sheet when a button is
pressed on a different sheet, the code i have so far is:

Sheets("February Stats").Select
ActiveSheet.Range("C8:R63").Select
Selection.ClearContents

But this obviously takes u into that sheet before deleting, so I then
have put a bit of code at the end that takes me back.

Is there a way to clear cells in another sheet, without having to
actually select it?

Thanks

Andy


--
Andyd74
------------------------------------------------------------------------
Andyd74's Profile: http://www.excelforum.com/member.php...o&userid=34013
View this thread: http://www.excelforum.com/showthread...hreadid=567113