Trapping the last row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear All

Kindly help me with this. I have lots of sheets and lots of data in each of the sheet. I need to pick up the information from each of the sheets for consolidation. For this I need to trap the last row in each of the sheets. If anyone has the code to trap the number of the last row kindly send me at the earliest

Regard
AC
 
"Last Row/Col in Worksheet" is available on my website.

--
Rob van Gelder - http://www.vangelder.co.nz/excel


A C said:
Dear All,

Kindly help me with this. I have lots of sheets and lots of data in each
of the sheet. I need to pick up the information from each of the sheets for
consolidation. For this I need to trap the last row in each of the sheets.
If anyone has the code to trap the number of the last row kindly send me at
the earliest.
 
AC,

You can find the last row with

cLastRow = Activesheet.Cells(Rows.Count,"A").End(xlUp).Row

Change column A to suiit the appropriate column for your workbook.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

A C said:
Dear All,

Kindly help me with this. I have lots of sheets and lots of data in each
of the sheet. I need to pick up the information from each of the sheets for
consolidation. For this I need to trap the last row in each of the sheets.
If anyone has the code to trap the number of the last row kindly send me at
the earliest.
 

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