Solved

Two criterias

Posted on 2014-12-10
1
53 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 51

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

738 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