Select problem
The calculated value for LastRow is not a range; rather it is a number (the
..Row property reference and the +1 make that the case). You probably want
something like this...
Private Sub Workbook_Open()
Cells(Rows.Count, "A").End(xlUp).Offset(1).Select
End Sub
--
Rick (MVP - Excel)
"Mark J" wrote in message
...
here is my code;
Dim lastRow As Range
Dim A As Range
Private Sub Workbook_Open()
lastRow = Cells(Rows.Count, "A").End(xlUp).Row + 1
A = lastRow
A.Select
End Sub
can someone tell me what i need to fix to make this work.thanks
|