Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hal hal is offline
external usenet poster
 
Posts: 1
Default Clearing cells

Other than a tedious looping construct, how can you
quickly clear a large block of cells?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Clearing cells

Selection.Clear
Selection.ClearContents

Range("A1:A100").Clear
Range("A1:A100").ClearContents

Clearcontents will only clear the value in it
Clear also the formatting


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"hal" wrote in message ...
Other than a tedious looping construct, how can you
quickly clear a large block of cells?

TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Clearing cells

Hal,

Try something like

Range("A1:Z10000").Clear

Or do you have something else in mind?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"hal" wrote in message
...
Other than a tedious looping construct, how can you
quickly clear a large block of cells?

TIA



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Clearing cells

Range("A1").CurrentRegion.ClearContents

Regards,
Tom Ogilvy


"hal" wrote in message
...
Other than a tedious looping construct, how can you
quickly clear a large block of cells?

TIA



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
VB Code for clearing Cells Rich Excel Discussion (Misc queries) 2 September 2nd 07 08:40 PM
clearing cells Lauren Excel Worksheet Functions 1 September 7th 06 09:41 PM
Clearing unlocked cells fshew Excel Discussion (Misc queries) 5 April 12th 06 02:06 PM
Clearing Cells mully New Users to Excel 3 May 19th 05 07:12 PM


All times are GMT +1. The time now is 07:28 PM.

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

About Us

"It's about Microsoft Excel"