I've always used the following code to find the last cell in a column:
Does anyone have any suggestions on how to speed this up? Or any ideas of a different way to do that that might be faster? I've also moved to Office 2007.
Thank you in advance!
Code:
Public Function LastCellInColumn(sheetOfInterest As String) As Integer
Sheets(sheetOfInterest).Select
Range("A65536").End(xlUp).Select
LastCellInColumn = ActiveCell.Row
End Function
Does anyone have any suggestions on how to speed this up? Or any ideas of a different way to do that that might be faster? I've also moved to Office 2007.
Thank you in advance!