Last cell in column

D

Don A

I wrote a macro that does this as below:
' EndDown Macro
Sub EndDown()
If Selection Is Nothing Then Exit Sub
State = IsEmpty(ActiveCell)
For rw = ActiveCell.Row + 1 To Application.Rows.Count - 1
If IsEmpty(Cells(rw, ActiveCell.Column)) <> State Then
Exit For
Next rw
ActiveWindow.ScrollRow = rw
Cells(rw, ActiveCell.Column).Activate
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Print Value from Inputbox 0
Drawing a line for a set range 1
User inserted value 5
Delete all rows except 2
Fails to delete empty rows 4
quicker way to execute? 4
auto running macro 2
UserForm QueryClose 2

Top