Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cells without clearing formulas marsjune68 Excel Discussion (Misc queries) 2 April 10th 09 07:39 PM
clearing cells Lauren Excel Worksheet Functions 1 September 7th 06 09:41 PM
Clearing cells [email protected] Excel Programming 1 January 4th 06 09:48 PM
Clearing Cells mully New Users to Excel 3 May 19th 05 07:12 PM
Clearing cells hal Excel Programming 3 August 8th 03 04:01 PM


All times are GMT +1. The time now is 05:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"