Sorting Question

kop442000

Board Regular
Joined
Jul 1, 2004
Messages
179
I want to have a button that will "sort" all the data in my ever growning spreadsheet but column B.

No I know how to do a macro to do this, but after I create the macro and more and more lines of data are added, the macro will not encompass all the new lines.

I realise that in the macro I could scroll alllll the way down to the bottom to make sure that every line is counted but this seems a bit extreme.

I can't sort by highlighting the column header things either, because the data I want to sort only starts on line 5 and so I don't want to include any lines before this.

Is there an easier way that to highlight and sort all the lines all the way to the bottom?

Thanks for any replies posted.
Kop.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,191,671
Messages
5,987,956
Members
440,121
Latest member
eravella

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
Top