Dropping To The Bottom Of A Table

jskrepak

New Member
Joined
May 30, 2008
Messages
44
Well I confess to feeling very stupid right now. I recorded a simple sort function as a macro beginning with range A1 in my table. The sort works fine but it leaves me sitting at A1 when its done. I really need the macro to bring me to the next empty row at the bottom of the table so I can continue adding information.

I tried recording Ctrl/Shift > Down Arrow followed by Page Down and it seemed to work. Then I notice the macro simply recorded the range after paging down and locked it in. So now instead of being returned to A1, I'm returned to A784 even though my table has since grown past row 1000.

I want to ALWAYS be returned to the next row below the table (in column A) no matter how big the table gets. What am I missing here?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
No promises, but this works on one of my macros to goto the last empty row...

Code:
Range("A" & Range("A" & Rows.Count).End(xlUp).Row + 1).Select

HTH
Matt O.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top