Select problem
You are using range objects so you need to use set and different properties...
Dim lastRow As Range
Dim A As Range
Private Sub Workbook_Open()
set lastRow = Cells(Rows.Count, "A").End(xlUp).offset(1,0)
set A = lastRow 'not sure why you are doing this...
A.Select
End Sub
--
HTH...
Jim Thomlinson
"Mark J" wrote:
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
|