If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Autofilter problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-10, 07:36
dg1069 dg1069 is offline
Registered User
 
Join Date: Apr 2010
Posts: 13
Autofilter problem

hi,

I am trying to get the filter data in sheet 2 based on filter criteria selected in sheet 1. i am able to do the same when one criteria is selected, but unable to extend the same for multiple selections. I am using Excel 2007. Following is my code:

Code:
With Worksheets("Sheet1")
    If .AutoFilterMode Then
        With .AutoFilter.Filters(1)
            If .On Then c1 = .Criteria1
        End With
   End If
    End With
    
    Sheets("Sheet2").Range("$A$2:$P$11").AutoFilter Field:=1, Criteria1:= _
        c1
Please help!!!
Reply With Quote
  #2 (permalink)  
Old 09-15-10, 16:14
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

The autofilter class was extensively overhauled in Excel 2007. To be able to give a thorough reply to help you, we really need to know which version of Excel you are using.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 09-17-10, 01:10
dg1069 dg1069 is offline
Registered User
 
Join Date: Apr 2010
Posts: 13
Thanks for your reply. I am working on excel 2007, other than that what version you want to know? Can you give some steps to find the same?

Looking forward for your response.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On