Data Sort Autofilter on different rows?

geordicat

New Member
Joined
May 5, 2004
Messages
36
I have Excel 2003 at work. I have a spreadsheet with different areas of information. The first few rows are one model of widget, then I have a few blank lines, then another group of information with another model of widget, blank lines.. group of widgets....

Across each set of data I have the headers, and the last column is for widgets within a specified date range.

Is there a way to have each row of headers have the Data Sort Autofilter arrows? Right now I have to highlight each header row and then click the arrow. If there was a way to have each little group have its own data sort arrow that would be way cool.

I hope that makes sense.



Thank you. :)
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
something similar to this macro

Code:
Sub test()
Dim r(1 To 3) As Range, j As Integer
Set r(1) = Range("a1").CurrentRegion
'MsgBox r(1).Address
Set r(2) = Range("A10").CurrentRegion
Set r(3) = Range("A20").CurrentRegion
For j = 1 To 3
r(j).AutoFilter field ..........
(your code for rest of what you want to do )
r(j).AutoFilter  ' to remove the autofilter
Next j

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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