If someone selects a range - I would like to know what the bottom of the range is. I used this code:
is there a simpler way to know the last row?![]()
Selection.Row + Selection.Rows.Count - 1
If someone selects a range - I would like to know what the bottom of the range is. I used this code:
is there a simpler way to know the last row?![]()
Selection.Row + Selection.Rows.Count - 1
That looks simple enough to do the job. What is the problem?
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
The are many ways to get last row of contiguous selection.
But there is no simple .LastRow property.![]()
?selection.rows(selection.rows.count).row ?selection.offset(selection.rows.count).row-1 ?selection.cells(selection.cells.count).row
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks