This will set a reference to the last cell in Column C on the active sheet.
Dim LastCell As Range
Set LastCell = Cells(Rows.Count, "C").End(xlUp)
If you want to reference the last cell on a specific sheet...
Dim Last Cell As Range
With Worksheets("Sheet1")
Set LastCell = .Cells(.Rows.Count, "C").End(xlUp)
End With
Note the dotted Cells and Rows property calls to reference the sheet in the With statement.
--
Rick (MVP - Excel)
Rick, Thanks so much for your response. I have to try it now. But I realize that I may need something else, because this is part of a routine that will read in a file each day into a fixed location. One day the file may go to row 1000 and the next day it may go to row 1050 or 950. So I wonder if that function will work in that case or will it show the maximum cell that was ever used? In that case I would probably need the last Nonblank cell in the row. Thanks for any information on this.