Dynamic sorted "view" over another sheet

krdale

New Member
Joined
Nov 22, 2009
Messages
45
Hi Guys,

I have position sheet with several hundred positions and different metrics per position. Each position has its own row.

To get a better overview over things I need to sort the rows based on different columns and I would prefer to do that in a separate sheet, so I retain the structure of my input sheet.

Is there an easy way to do this with VBA code? I've written a little VBA code before, but mostly functions and a few fairly simple subs.

So basically I need to :
- Copy a sheet
- Sort it first on column A then C.

And preferably this should happen "live", so that I don't have to clear the "sorting-sheet" after each sorting?

I can do this with the macro recorder(that is a manual macro, that will clear, select, copy, select paste sort), but it wont be pretty, and not very quick and clean code.

Appreciate any assistance!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Have you considered using a pivot table? This may be the easiest way to get the desired results.

Alan
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

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