Results 1 to 5 of 5

Thread: Filter question

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    9

    Filter question

    I want to do a macro that would filter a column with each criteria available in that column one at a time

    It would then get data accroding to each filt.

    I was looking for something like:

    For each criteria in ???

    Next criteria

    Thanks for your help.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Filter question

    Welcome to the Forums.

    Could you be a little more descriptive of what your trying to do?

    For the most part, you can record a macro doing the action you want to
    program. Then when your done, stop recording and check the code
    generated in the Module in the VBA IDE.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    Lively Member Daniel McCool's Avatar
    Join Date
    Oct 2002
    Posts
    127

    Re: Filter question

    I think he want's to filter a column for all possible criteria using a dynamic function and be able to do something with the filtered results.
    "Some love is fire, some love is rust. But the finest, cleanest love is lust." - James Bond

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    9

    Re: Filter question

    That's exactly it Daniel McCool.

  5. #5
    Lively Member Daniel McCool's Avatar
    Join Date
    Oct 2002
    Posts
    127

    Re: Filter question

    Write a loop to make your own criteria in an array.
    "Some love is fire, some love is rust. But the finest, cleanest love is lust." - James Bond

Posting Permissions

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



Click Here to Expand Forum to Full Width