Last Entry in Colum

  • Thread starter Thread starter hawk
  • Start date Start date
H

hawk

Want to use a macro to find the last entry in a colum that can change every
time its run.
Any ideas or sample code appreciated
Roger
 
Dim LastCol as long

with worksheets("Sheet1")
lastcol = .cells(.rows.count,"A").end(xlup).row
msgbox .cells(lastrow,"A").value
end with

I used column A.
 

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