ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   better way clearcontents column? (https://www.excelbanter.com/excel-programming/398837-better-way-clearcontents-column.html)

Pete[_33_]

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

Range("a1:a65536").ClearContents

?

Mike

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

?


Ron Rosenfeld

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

G56[_2_]

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


JE McGimpsey

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


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com