Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving in Excel

Status
Not open for further replies.

Winfred

Programmer
Oct 9, 2001
20
US
Hi All,
How do you move to the bottom (the cell after the last cell with info) of a column programaticaly?
Thanks Thanks,
Winn Pauley
 
This is one way to do it:
If Selection.End(xlDown).Row <> 65536 Then
ActiveCell.Offset(Selection.End(xlDown).Row - ActiveCell.Row + 1, 0).Select
End If
 
This routine will work on ANY column that the cursor is on.

Sub Go_NextBlankRow()
cur_colm = ActiveCell.Column
lastcell = Cells(65536, cur_colm).End(xlUp).Offset(1, 0).Address
Range(lastcell).Select
End Sub

I hope it helps. :)

Regards, ...Dale Watson dwatson@bsi.gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top