Expand Auto Filter to Another Worksheet

barim

Board Regular
Joined
Apr 19, 2006
Messages
176
I have this VBA Code:

Code:
Sub RefreshFilter()
'
' RefreshFilter Macro
'
' Keyboard Shortcut: Ctrl+q
'
    Range("A1").Select
    Range("A1:I1019277").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange _
        :=Range("A1:I3"), Unique:=False
End Sub
Sub ClearSearch()
'
' ClearSearch Macro
'
' Keyboard Shortcut: Ctrl+w
'
    ActiveSheet.ShowAllData
    Range("L5").Select
    Selection.ClearContents
    Range("L1").Select
    Selection.ClearContents
End Sub
I am running out of space in the first sheet and would like to continue on Sheet 2. I would like to see filtered data on Sheet 1.
Or maybe everything filtered on Sheet 3.

Thanks.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Another possibility...

If you have Microsoft Access, you can do it there. There is no limitation on row size, just database size, and Access is great for doing things like filters/queries.
 
Upvote 0
I know about Access queries, but I am stucked with Excel.

I named Sheet 1 data as "Database" by defining name. Sheet 2 I named "Database1".
Is there a way to include Range ("Database", "Database1)?
This way it can search the same criteria. I have columns name same on both sheets.
 
Upvote 0
I know about Access queries, but I am stucked with Excel.

I named Sheet 1 data as "Database" by defining name. Sheet 2 I named "Database1".
Is there a way to include Range ("Database", "Database1)?
This way it can search the same criteria. I have columns name same on both sheets.

PowerQuery I think is the best answer, forgoing Access, but PowerQuery does require the appropriate version of Office/Excel. If you cannot load the add-in, then there is a possibility of using PivotTable with Multiple Consolidation ranges. I don't think PivotTable is as efficient as PowerQuery so I hope you are running 64-bit, a screaming processor and plenty of RAM. Definitely use the "Defer Layout Update" option if attempting that.
And then with results possibly exceeding the row limit.... I don't know what kind of crash that would cause. You may wish to try in a copy of your WorkBook..
 
Upvote 0

Forum statistics

Threads
1,207,435
Messages
6,078,521
Members
446,345
Latest member
MicCh

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