until now, to know which is the last row with data I use this code:
Function GetPrimeraFilaLibre(paramNombreHoja As String, paramColumnaReferencia As String)
GetPrimeraFilaLibre = Sheets(paramNombreHoja).Range(paramColumnaReferencia & "65536").End(xlUp).Offset(1, 0).Row
End Function
This function take as parameter the sheet that I want to know the last row and as second parameter the column of reference that I will check if it has data or not.
The problem that this function doesn't work if there is hidden rows. I would like to know the last row with data, no matter if it is hidden or not.
Thanks.