Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Jun 12, 2008
2
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.
 
Replies continue below

Recommended for you

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