+ Reply to Thread
Results 1 to 11 of 11

Multiple Autofilters - VBA

  1. #1
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Multiple Autofilters - VBA

    Good Morning All,

    slight problem here with 2 autofilters i am using, they are both initiated using VBA code and criteria on a control sheet however it appears that one is cancelling the other out, for example i manage to get my date filtered but no times, or if i alternate the run order i get times filtered but no dates i have enclosed the code below if anyone can see what i have done wrong

    many thanks in advance

    Teshi
    Please Login or Register  to view this content.
    Last edited by teshiburu1988; 06-14-2009 at 06:30 AM.

  2. #2
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    Can anyone offer any insight on this issue? it would be greatly appreciated been trying to get it right all afternoon

    would be much appreciated

  3. #3
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    Can anyone offer any assitance with this? if i have not been clear can enough please explain what needs to be known

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    Sorry to bump this but still no joy, can anyone assit?

  5. #5
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    I have now cross posted this thread on MrExcel

    Mr Excel Post

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Multiple Autofilters - VBA

    Post a workbook.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    shg,

    thankyou for offering to take a look, i have highlighted the regions on the command sheet that should contain my criteria and have unhidden the sheet on which the data i want filtered resides,

    thanks again

    Teshi...

  8. #8
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    Sorry about double post, took ages to upload for some reason... gave up with previous post thought i would time out

    here it is
    Attached Files Attached Files

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Multiple Autofilters - VBA

    Try this:
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Multiple Autofilters - VBA

    shg,

    Thank-you so much that is perfect, i know the code works but could you explain what caused the issue for myself in the first place?

    Teshi...

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Multiple Autofilters - VBA

    I don't do much with filtering but ...

    A sheet can only have one autofilter, and this line was turning it off after you set the first filter:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1