Solved

Two criterias

Posted on 2014-12-10
1
48 Views
Last Modified: 2014-12-16
Hi,

I have the below code and need to filter on two criterias, my second criteria is

Column 6 "BB"

Can someone amend the below sysntax so this filters first on Column 8 and then on Column 6

Thanks

    Cells.Select
    Selection.AutoFilter
    Cells.AutoFilter Field:=8, Criteria1:="France"

----- no I need it to filter on column 6 for "BB"
     
    Cells.Copy
    Workbooks.Add
   
 
    Range("A1").PasteSpecial
    SaveTheFile_Everything

Thanks
0
Comment
Question by:Seamus2626
1 Comment
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40491988
pls try

    Cells.Select
     Selection.AutoFilter
     Cells.AutoFilter Field:=8, Criteria1:="France"
     Cells.AutoFilter Field:=6, Criteria1:="BB"

'  ----- no I need it to filter on column 6 for "BB"
      
     Cells.Copy
     Workbooks.Add
     
   
     Range("A1").PasteSpecial
     SaveTheFile_Everything

Open in new window

Regards
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now