macro to find the last blank cell in col. A
If you are using a version of Excel prior to 2007 and if cell A65536 is
empty, then A65536 is the correct cell to be Selected
--
Gary''s Student - gsnu200745
"peyman" wrote:
hi,
this macro takes the active cell to A65536!!!
"Gary''s Student" wrote:
Just start from the bottom and work upwards:
Sub sellstblcell()
Dim i As Long
For i = Rows.Count To 1 Step -1
If IsEmpty(Cells(i, "A")) Then
Cells(i, "A").Select
Exit Sub
End If
Next
End Sub
--
Gary''s Student - gsnu200745
"peyman" wrote:
hi guys,
how can I write a Macro to set the Activecell in the activesheet on the last
blank cell in column A?
thanks in advance.
peiman
|