Thread: End property
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
papou[_2_] papou[_2_] is offline
external usenet poster
 
Posts: 112
Default End property

Hello Stefi
Use
Range("A65536").End(xlUp).Row

HTH
Cordially
Pascal

"Stefi" a écrit dans le message de news:
...
Hi All,

I wanted to use
Columns("A:A").End(xlDown).Row
to determine last cell in column A. Column A has a header in A1.
Columns("A:A").End(xlDown).Row gives the correct result if I have at least
one not blank cell (A2) in column A, but gives 65536 if I have only the
header. I'd expect 1 as result.

Is there a simple way of getting 1 in this case, other then complicated IF
structures?

Thanks,
Stefi