Autofilter then Autosort

happyhungarian

Active Member
Joined
Jul 19, 2011
Messages
252
Office Version
  1. 365
Platform
  1. Windows
Hi I am looking for a way to have my spreadsheet/data set autosort either before or after I autofilter. Here is the code I am currently using for the Autofilter

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Me.Range("c2:c10"), Target) Is Nothing Then Exit Sub
ActiveSheet.Range("$bz$9:$bz$136").AutoFilter Field:=1
ActiveSheet.Range("$bz$9:$bz$136").AutoFilter Field:=1,Criteria1:="Show"

End Sub


I need several columns to autosort off of data that is in a few columns or autosort off of a ranking system (1-xx) I built in column BT10:BT136. I figure it would be easiest to Autosort from Smallest to Largest off of the ranking system in column BT.

Thank you for your help.

Jesse
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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