+ Reply to Thread
Results 1 to 9 of 9

Autofilter Custom Filter VBA

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Autofilter Custom Filter VBA

    Hi All,

    I have a problem I'm having a hard time with. I have 3 tabs, let's name it Raw Data tab 1, Raw Data tab 2 and Raw Data Tab 3. Each tab have columns A-DB. The number of rows differ from each tab. I have to filter Column BN with text that contains "Day 1 PL Review Pending" and Column B with "Accounting Adjustments." Now I have to copy the filtered columns to a "Master" tab. Only copying the rows with the those criteria. I need a code that would work both for MS Excel 2003 and 2007. Thanks

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Autofilter Custom Filter VBA

    This should get you most of the way there:
    Please Login or Register  to view this content.
    [/CODE]
    Last edited by JBeaucaire; 02-07-2013 at 01:52 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Autofilter Custom Filter VBA

    Can i post the attachment maybe you can try it. It doesn't seem to work
    Attached Files Attached Files
    Last edited by FLani; 02-07-2013 at 07:44 AM.

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Autofilter Custom Filter VBA

    Edit the macro so that the sheet tab names are listed correctly, or change the sheet tab names to match what you posted originally, then try again.

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Autofilter Custom Filter VBA

    I tried changing both. It doesn't seem to work.

  6. #6
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Autofilter Custom Filter VBA

    You said to filter column BN for "Day 1 PL Review Pending". In the macro, column BN is filtered as column 66.

    If the column # is wrong, correct that. If the search string is wrong, correct that in the macro. I searched all 3 sheets and didn't find a single instance of "Day 1 PL Review Pending".

  7. #7
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Autofilter Custom Filter VBA

    It's actually BF and changed it to 58. sorry about that

  8. #8
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Autofilter Custom Filter VBA

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  9. #9
    Registered User
    Join Date
    07-11-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    91

    Re: Autofilter Custom Filter VBA

    Hi,

    What if instead of filtering these 3 tabs in a worksheet, i have to each file (em,awm and equity derivatives)in three separate files and do this autofiltering and copy-pasting? i already have the code for opening the file but the autofiltering doesnt work

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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