Function lastrow(colName As String) Dim sht As Worksheet Set sht = ThisWorkbook.ActiveSheet lastrow = sht.Cells(sht.Rows.Count, colName).End(xlUp).Row End Function Function LastCol(rowName As Double) Dim sht As Worksheet Set sht = ThisWorkbook.ActiveSheet LastCol = sht.Cells(rowName, sht.Columns.Count).End(xlToLeft).Column End Function Function lastcell() Dim sht As Worksheet Dim lastrow As Long, lastcolumn As Long Dim lastletter As String Set sht = ThisWorkbook.ActiveSheet lastrow = sht.UsedRange.Rows(sht.UsedRange.Rows.Count).Row lastcolumn = sht.UsedRange.Columns(sht.UsedRange.Columns.Count).Column lastletter = Chr(64 + lastcolumn) lastcell = lastletter & lastrow End Function how can i get the lastletter line to work for columns AA, AAA, AAAA etc as my routine uses the chr hack but only works on sheets A-Z.