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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cell Activation After Sort 1

Status
Not open for further replies.

thunderkid

Military
Joined
Jun 12, 2008
Messages
2
Location
US
I am using VBA codes to sort hundred of rows on a sheet. However, after the sort I have to scroll down to the last row to add a new row. How do I activate (if that is the correct term) on the cell after the last row. I have tried the following:

Range(Selection, Selection.End(xlDown)).Offset(1,0).Activate

This code highlights the column of the active cell, but the active cell is at the uppermost cell in the selected column.

Any hints would be appreciated.
 
Couldn't you just select the bottom-most row (65536) in the column, and do a xlUp?

Range("A65536").Select
Selection.End(xlUp).Select

That will select the last element in the the column.
 
melone,
Your solution worked perfectly! Working from the bottom up approaches the task from a different perspective. Thanks again. Have a star!

Thunderkid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top