finding last filled row

akkinarula

New Member
Joined
Sep 2, 2011
Messages
27
hi all,

i have to write a macro on sheet 2 which shall be itterate as per the rows in the sheet1.
from where shall i get the last row no of sheet1.
sheet1's row number changes dynamically.

i m using ms excell 2003

thanks in advance
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try like this

Code:
LR = Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
 
Upvote 0
Lst_row=thisworkbook.sheets("Sheet1").Range("A65536").End(xlUp).Row

There are a few more methods... let me know if you have any apecific requirement...
 
Upvote 0

Forum statistics

Threads
1,224,579
Messages
6,179,656
Members
452,934
Latest member
mm1t1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top