Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Clearing Cells
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Clearing cells without clearing formulas | Excel Discussion (Misc queries) | |||
clearing cells | Excel Worksheet Functions | |||
Clearing cells | Excel Programming | |||
Clearing Cells | New Users to Excel | |||
Clearing cells | Excel Programming |