Select an empty cell

  • Thread starter Thread starter Patrick C. Simonds
  • Start date Start date
P

Patrick C. Simonds

I need a piece of code which will look at column C and find the first empty
cell in the column (must be below row 6) and then select the cell in column
B of that row.
 
That does not move down to the first empty cell in column C.

Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select
 
That does not move down to the first empty cell in column C.


Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select



- Show quoted text -

Yeah, it does not, because your request was:
I need a piece of code which will look at column C and find the first
empty
cell in the column (must be below row 6) and then select the cell in
column
B of that row.

And that's what my code does!

If you want to move down to the first empty cell in column c and
select this cell you could do this:
cells(cells(6,3).end(xldown).row + 1, 3).select
which basically is the same but the last number has been changed from
2 (column B) to 3 (column C)

hth
Carlo
 

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