Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default better way clearcontents column?

is there a better way to clear the contents of an entire column
other then

Range("a1:a65536").ClearContents

?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default better way clearcontents column?

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

?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default better way clearcontents column?

On Sat, 06 Oct 2007 19:50:39 GMT, Pete 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default better way clearcontents column?

Pete 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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default better way clearcontents column?

In article ,
Ron Rosenfeld 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
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
ClearContents Paul Dennis Excel Programming 2 September 11th 07 02:58 PM
ClearContents not clearing :( JoeH[_21_] Excel Programming 0 September 27th 04 02:54 AM
Clearcontents Caroline Vincent Excel Programming 2 September 9th 04 11:03 AM
Clearcontents K Dales Excel Programming 0 February 27th 04 01:52 PM
Clearcontents Dick Kusleika[_3_] Excel Programming 0 February 17th 04 05:42 PM


All times are GMT +1. The time now is 07:00 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"