Last empty cell

  • Thread starter Thread starter myleslawrence
  • Start date Start date
M

myleslawrence

I want to assign a value to F20 or F21 or the last available F cell on the
page. Is there a way of determining which one that is?
Thanks
 
Hi Myles,

Try:

Dim fFrstEmpty As Range

Set FirstEmpty = Cells(Rows.Count, "F").End(xlUp)(2)
 
Works like a champ - thanks

Norman Jones said:
Hi Myles,

Try:

Dim fFrstEmpty As Range

Set FirstEmpty = Cells(Rows.Count, "F").End(xlUp)(2)
 

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