Macro/VBA to allow Filter based on cell value from different Tab

Jzfbkr

New Member
Joined
Aug 4, 2014
Messages
29
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]INPUT[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fixture[/TD]
[TD]HS[/TD]
[TD]AS[/TD]
[/TR]
[TR]
[TD]TEAM A v TEAM B
[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]TEAM C v TEAM D[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]TEAM E v TEAM F[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]TEAM A v TEAM C[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


Im looking to try and write a macro to autofilter a table based on the contents on the cell above. This cell is on a different sheet to the table I am looking to filter.

Ideally the I would like to return the following:

[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]TEAM A[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Fixtures[/TD]
[TD]HS[/TD]
[TD]AS[/TD]
[/TR]
[TR]
[TD]TEAM A v TEAM B[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]TEAM A v TEAM C[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]


My range is alot larger using 365R x 225C

Any help with this would be massively appreciated as I am very new to macros.

Thanks
 
Hi I am new to the forum and like this thread.
However I am easily confused and new to macros and forums.
If I have data on one sheet which I would like to filter using a cell on a query sheet, and then to copy the data to a third sheet and rename using the filter selection.
Can someone help?
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,421
Messages
6,172,014
Members
452,442
Latest member
jtblckmaro

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