View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default xldown in a non-contiguous column

Ok... I'm lost. The code posted by Tom and I looks up from the bottom of the
sheet and finds the first non-blank cell in a column. I would have assumed
that would be the end of the data... What exactly are you looking for???
--
HTH...

Jim Thomlinson


"David Gerstman" wrote:

whoops, I worded that wrong. I want to get to the end of the data. Not the
end of h of the column!

"Jim Thomlinson" wrote:

You bet. xlUp... try this...

dim rng as range
set rng = Sheets("Sheet1").Cells(rows.count, "A").end(xlUp)
msgbox rng.address

--
HTH...

Jim Thomlinson


"David Gerstman" wrote:

I have a non-contiguous column that I need to read. xldown will only take me
to the first blan row. Is there an alternative to xldown to get to the real
bottom of the column?