better way clearcontents column?

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

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

Range("a1:a65536").ClearContents

?
 
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
 
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
 
Ron Rosenfeld said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top