Consulting

Results 1 to 4 of 4

Thread: Advanced Auto Filter Long Text Strings From List Table

  1. #1
    VBAX Mentor
    Joined
    Feb 2016
    Location
    I have lived in many places, I love to Travel
    Posts
    413
    Location

    Advanced Auto Filter Long Text Strings From List Table

    Evening folks,


    I thought I'd start another thread because the other one might be confusing,

    So I've been working on doing the advanced filtering thing but unfortunately I've got stuck, it only works on simple examples when I put in these long strings somethings gone wrong with the filtering.


    Can someone please take a look at my attached Excel Workbook I have created the filter table but unfortunately is not filtering the data

    Filter Data.xlsm

    I have set everything up correctly as shown by the example but I don't know what to do

    its a tenacious case

    thank you for your advice
    Cheers for your help

    dj

    'Extreme VBA Newbie in progress - one step at a time - like a tortoise's pace'


  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    You need to put "ID" in F2 on 'FilterData'
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Mentor
    Joined
    Feb 2016
    Location
    I have lived in many places, I love to Travel
    Posts
    413
    Location
    Hello Paul,

    typical faux pas as usual

    Oh dear well it's been one of those Mondays and I've been beside myself.
    Excel's been really a pain today.
    And I tried everything, I changed the code like 10 times because I thought there was something wrong with the code, with the comma in the beginging of the cell.
    Well I suppose i better call it a evening after today's long day battling with the long string things.

    I'll keep this open just in case something else goes awry
    Thanks for the great tip
    And have a good evening all
    Cheers for your help

    dj

    'Extreme VBA Newbie in progress - one step at a time - like a tortoise's pace'


  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    The field header in the Critera has to match the field header in the data, so without "ID" as a column header, there was nothing to match
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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