Public Function GetLastrow(ByRef pSheet As Worksheet) As Integer
Const CheckColumn As Integer = 26
Dim i As Integer
Dim intInitial As Integer
Dim intLastrow As Integer
For i = 1 To CheckColumn
intInitial = pSheet.Cells(65536, i).End(xlUp).Row
If intInitial > intLastrow Then intLastrow = intInitial
Next
GetLastrow = intLastrow
End Function