E
Emma Watkins
Hi
I am trying to get a macro to go to the first blank cell in a specific
column
i.e. column A has data from row A1 to A15. I'd want to run a macro that will
select cell A16.
I found this code below which does this on a 'Normal' sheet.
The problem i have is that the window is split and frozen at cell A1 (to
retain headings and the Button for the macro).
This seems to be preventing the code from running correctly.
Can anyone suggest an alteration to the code, or a different approach?
.....Sub findfirstempty()
Set Rng = Range("a2")
If Not IsEmpty(Rng.Value) Then
If IsEmpty(Rng(2).Value) Then
Set Rng = Rng(2)
Else
Set Rng = Rng.End(xlDown)(2)
End If
End If
Rng.Select
End Sub.......Thanks in advancePaul
I am trying to get a macro to go to the first blank cell in a specific
column
i.e. column A has data from row A1 to A15. I'd want to run a macro that will
select cell A16.
I found this code below which does this on a 'Normal' sheet.
The problem i have is that the window is split and frozen at cell A1 (to
retain headings and the Button for the macro).
This seems to be preventing the code from running correctly.
Can anyone suggest an alteration to the code, or a different approach?
.....Sub findfirstempty()
Set Rng = Range("a2")
If Not IsEmpty(Rng.Value) Then
If IsEmpty(Rng(2).Value) Then
Set Rng = Rng(2)
Else
Set Rng = Rng.End(xlDown)(2)
End If
End If
Rng.Select
End Sub.......Thanks in advancePaul