Hi guys,
I have been using this forum for quite a long time as a 'spectator'. This is my first post.
I have an advanced filter macro in place for my company. It allows us to match our prospective buyers to our signed content sellers by matching their produced content with the demographics/verticals.
Please refer below to see the VBA code that I am using and the filter rows/criteria.
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 3505"]
<colgroup><col><col><col><col><col><col><col><col span="5"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="7"><col></colgroup><tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Publisher[/TD]
[TD]Website[/TD]
[TD]Websites URL[/TD]
[TD]Website Tier[/TD]
[TD]Demographic[/TD]
[TD]Category[/TD]
[TD]ABC1[/TD]
[TD]Dec-24[/TD]
[TD]25 - 49[/TD]
[TD]50+[/TD]
[TD]Auto/Moto[/TD]
[TD]B2B[/TD]
[TD]Beauty[/TD]
[TD]Business/ Banking/ Insurance[/TD]
[TD]Cinema/ TV/ Music[/TD]
[TD]Culture/ Lifestyle[/TD]
[TD]Education[/TD]
[TD]Entertainment/ Buzz[/TD]
[TD]Family/ Motherhood[/TD]
[TD]Fashion[/TD]
[TD]Food/ Beverage[/TD]
[TD]Gaming[/TD]
[TD]Green Development[/TD]
[TD]Health[/TD]
[TD]Hobbies/ Interests[/TD]
[TD]Home/ Deco/ Gardening/ DIY[/TD]
[TD]Info/ 411[/TD]
[TD]Luxury[/TD]
[TD]News Media[/TD]
[TD]Pets[/TD]
[TD]Science[/TD]
[TD]Sport[/TD]
[TD]Technology[/TD]
[TD]Travel/ Adventure[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
' AdFilter Macro
' Filters Data
'
' Keyboard Shortcut: Option+Cmd+Shift+D
'
Sheet6.Range("B1").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("D7:AR8"), CopyToRange:=Range("D10:AR10"), Unique:= _
False
Range("O10").Select
End Sub
And then a small macro to clean the selection and the data retrieved. Both are assigned to buttons.
This has been working amazingly well but there are some challenges that I can't seem to solve. This are the challenges that I can't solve (I am still quite new to excel/vba so apologies in advance for the noob questions):
Thank you very much for your help, it is much appreciated. Don't hesitate to PM if you need any more information.
I have been using this forum for quite a long time as a 'spectator'. This is my first post.
I have an advanced filter macro in place for my company. It allows us to match our prospective buyers to our signed content sellers by matching their produced content with the demographics/verticals.
Please refer below to see the VBA code that I am using and the filter rows/criteria.
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 3505"]
<colgroup><col><col><col><col><col><col><col><col span="5"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="7"><col></colgroup><tbody>[TR]
[TD]Region[/TD]
[TD]Country[/TD]
[TD]Publisher[/TD]
[TD]Website[/TD]
[TD]Websites URL[/TD]
[TD]Website Tier[/TD]
[TD]Demographic[/TD]
[TD]Category[/TD]
[TD]ABC1[/TD]
[TD]Dec-24[/TD]
[TD]25 - 49[/TD]
[TD]50+[/TD]
[TD]Auto/Moto[/TD]
[TD]B2B[/TD]
[TD]Beauty[/TD]
[TD]Business/ Banking/ Insurance[/TD]
[TD]Cinema/ TV/ Music[/TD]
[TD]Culture/ Lifestyle[/TD]
[TD]Education[/TD]
[TD]Entertainment/ Buzz[/TD]
[TD]Family/ Motherhood[/TD]
[TD]Fashion[/TD]
[TD]Food/ Beverage[/TD]
[TD]Gaming[/TD]
[TD]Green Development[/TD]
[TD]Health[/TD]
[TD]Hobbies/ Interests[/TD]
[TD]Home/ Deco/ Gardening/ DIY[/TD]
[TD]Info/ 411[/TD]
[TD]Luxury[/TD]
[TD]News Media[/TD]
[TD]Pets[/TD]
[TD]Science[/TD]
[TD]Sport[/TD]
[TD]Technology[/TD]
[TD]Travel/ Adventure[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
' AdFilter Macro
' Filters Data
'
' Keyboard Shortcut: Option+Cmd+Shift+D
'
Sheet6.Range("B1").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("D7:AR8"), CopyToRange:=Range("D10:AR10"), Unique:= _
False
Range("O10").Select
End Sub
And then a small macro to clean the selection and the data retrieved. Both are assigned to buttons.
This has been working amazingly well but there are some challenges that I can't seem to solve. This are the challenges that I can't solve (I am still quite new to excel/vba so apologies in advance for the noob questions):
- I can't fit more than one item per column, i.e., if I want to retrieve all the websites from Italy it's alright, but If I want to retrieve all of the websites from Italy and all of the websites from Spain, with doesn't retrieve any information. Also, is it possible to do it using a combo box selection as a filter.
- When filtering, sometimes I want the doc to retrieve all the websites that match a category or another category (or both), i.e., all the websites that fit into tech and science. Is it possible to do that?
Thank you very much for your help, it is much appreciated. Don't hesitate to PM if you need any more information.