Selecting Last Empty Row / Certain Columns

R

RigasMinho

Hey,
I have this where it finds the last empty cell
Worksheets(Sheet10.Name).Cells(Rows.Count, 1).End(xlUp).Select
ect
basically it selects the last empty cell in the worksheet.

However I need it to select the last empty row but only columns
A/B/C/D/E

I tried changing it to

Worksheets(Sheet10.Name).Range("A:E").End(xlUp).Select
but that does no go.

Any ideas?
 
P

PCLIVE

Try something like this:

r= Worksheets(Sheet10.Name).Cells(Rows.Count, 1).End(xlUp).row
Worksheets(Sheet10.Name).Range("A" & r & ":E" & r ).Select
 

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

Top