Option Explicit
Function LR(Col As Variant, Optional OS As Long)
Application.Volatile
If Not IsNumeric(Col) Then Col = Columns(Col).Column()
LR = Cells(Cells.Rows.Count, Col).End(xlUp).Offset(OS)
End Function
Function LC(Rw As Variant, Optional OS As Long)
Application.Volatile
If Not IsNumeric(Rw) Then Rw = Rows(Rw).Row()
LC = Cells(Rw, Cells.Columns.Count).End(xlToLeft).Offset(, OS)
End Function
|