05/11/2021
Never failing way to get correct last filled row number in a sheet using VBA
Sheet1.Cells(Sheet1.Rows.Count, 1).End(xlUp).row
Sheet1 is the name of sheet.
1 is the column number which will be like primary column or the main column. It must have data till last filled row even if others column are blank because this will be used as reference to get last row.
Happy Diwali/Happy Learning
Regards DataCube