+ Reply to Thread
Results 1 to 2 of 2

Autofilter on Multipleworksheets in Workbook

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Glasgow
    MS-Off Ver
    Excel 2010
    Posts
    56

    Autofilter on Multipleworksheets in Workbook

    Morning,

    I have a workbook that contains 40+ worksheets, I am looking to apply an autofilter on 20 of the worksheets (so I can then select and copy the filtered data to a new workbook),

    The 20 Worksheets all have the same column headers in Row 6, and a date in column A , so I want to apply an auto filter on last weeks info from row 6 column a...

    I have had a bash at doing this... and I can sort fo get it it to run on one worksheet, by recoridng the macro etc, but when I try to build in the If statement for excluding the WS that I dont want the filter to run on, it fails miserably... the code doesn't bug out... just doesn't do any filtering!

    Please Login or Register  to view this content.
    If anyone wants to throw in some code for selecting the range and firing it into another workbook that would be appreciated... not got round to that bit yet.... ;-)

    Anyone got any ideas for getting this to work?

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,565

    Re: Autofilter on Multipleworksheets in Workbook

    I would suggest you post a sample workbook ...

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Autofilter in another workbook
    By stuntmannen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2010, 01:52 PM
  2. AutoFilter all worksheets in a workbook
    By MattNiiro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2008, 10:08 AM
  3. Using Autofilter on Protected Workbook
    By PacE in forum Excel General
    Replies: 1
    Last Post: 05-23-2008, 06:28 AM
  4. AutoFilter in External Workbook?
    By DISMfish in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-26-2006, 02:40 PM
  5. Autofilter on protected workbook
    By Wes in forum Excel General
    Replies: 1
    Last Post: 01-20-2005, 08:06 PM

Tags for this Thread

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