Find

  • Thread starter Thread starter Filips Benoit
  • Start date Start date
F

Filips Benoit

Dear All,

How can i find the columnnumber of the first empty cell starting from cell
M7

To be used in a loop. M is fix but 7 is variable.

Thank³

Filip
 
You can try this. It heads left from column IV back until it runs into the
first populated cell and then move one column to the right...

dim lngLastColumn as long

lngLastColumn = cells(7, columns.count).end(xlToLeft).offset(0,1).Row
 

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