PC Review


Reply
Thread Tools Rate Thread

better way clearcontents column?

 
 
Pete
Guest
Posts: n/a
 
      6th Oct 2007
is there a better way to clear the contents of an entire column
other then

Range("a1:a65536").ClearContents

?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      6th Oct 2007
Columns("A:A").ClearContents

"Pete" wrote:

> is there a better way to clear the contents of an entire column
> other then
>
> Range("a1:a65536").ClearContents
>
> ?
>

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      6th Oct 2007
On Sat, 06 Oct 2007 19:50:39 GMT, Pete <(E-Mail Removed)> wrote:

>is there a better way to clear the contents of an entire column
>other then
>
>Range("a1:a65536").ClearContents
>
>?


Different, but I don't know if it is "better":

Range("a1").EntireColumn.ClearContents

Maybe it is better as it should work on Excel 2007 also.
--ron
 
Reply With Quote
 
G56
Guest
Posts: n/a
 
      6th Oct 2007
Pete <(E-Mail Removed)> wrote in news:Xns99C196B2A3BA9nsnscom@
207.115.17.102:

> is there a better way to clear the contents of an entire column
> other then
>
> Range("a1:a65536").ClearContents
>
> ?
>


Thanks Mike and Ron

Both do what I was looking for.

Plus I tried this

Columns(1).ClearContents

and it worked.

So thre are three more ways,
Range("a1").EntireColumn.ClearContents
Columns("A:A").ClearContents
Columns(1).ClearContents

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      6th Oct 2007
In article <(E-Mail Removed)>,
Ron Rosenfeld <(E-Mail Removed)> wrote:

> Different, but I don't know if it is "better":
>
> Range("a1").EntireColumn.ClearContents
>
> Maybe it is better as it should work on Excel 2007 also.


As should

Columns(1).ClearContents
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClearContents =?Utf-8?B?UGF1bCBEZW5uaXM=?= Microsoft Excel Programming 2 11th Sep 2007 02:58 PM
Clearcontents Caroline Vincent Microsoft Excel Programming 2 9th Sep 2004 11:03 AM
ClearContents - Except NamedRanges Mike Fogleman Microsoft Excel Programming 8 2nd Sep 2004 01:19 AM
Clearcontents K Dales Microsoft Excel Programming 0 27th Feb 2004 01:52 PM
Re: Clearcontents Dick Kusleika Microsoft Excel Programming 0 17th Feb 2004 05:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:19 AM.