how can I find last populated cell in a row (or column)

  • Thread starter Thread starter gigglefritz
  • Start date Start date
G

gigglefritz

Damn interface:

Row:
Dim lastCell As Range
Set lastCell = Range("IV" & Columns.Count).End
(xlToLeft)

Column:

Dim lastCell As Range
Set lastCell = Range("A" & Rows.Count).End(xlUp)
 
Me being a dumba**:

Row:
Dim lastCell As Range
Set lastCell = Range("IV" & 1).End(xlToLeft)
 

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