Make macro: "go to end of data"

livemusic

New Member
Joined
Jul 3, 2011
Messages
17
I have data in columns and need a macro to do certain things to the data. Is there a way to make a macro that... here is what I manually do... I put my cursor in the cell where the first of the data begins. I then pull my mouse down to highlight that column's data all the way to the last entry (blank cell below it), then I drag over to the right x-number of columns (which is always the same for each table of data), such that I am selecting the entire table of data. Then I sort on Column A (which is date) and then choose 'oldest to newest.' Then I do some other stuff, but I'll end this post with this 'highlighting/sorting' question.

My spreadsheet consists of numerous tables of data like this and I am always adding more sets of data. Thus, need a macro. Can this be done with a macro? The number of rows varies with each table set (how deep I drag my mouse), that is why I question if it can be done.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Bump one last time, in case anyone knows how to do this, cuz I need to know! Thanks.

Or, if it can't be done, please advise.
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,270
Members
452,902
Latest member
Knuddeluff

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