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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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