+ Reply to Thread
Results 1 to 3 of 3

VBA script to filter column with multiple text strings

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    VBA script to filter column with multiple text strings

    I need to filter column S in a spreadsheet. I need the filter to display only cells containing "SSD", "CSSD", or "HLND". The following code returns only cells containing all of the values. (Code treats as: "SSD" AND "CSSD" AND "HLND" I need: "SSD" OR "CSSD" OR "HLND")

    Please Login or Register  to view this content.
    Any help would be appreciated.


    Thanks,

    Met

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: VBA script to filter column with multiple text strings

    Please First check your field number is it really 19 or something else

    otherhand replace your filter code with below one
    Please Login or Register  to view this content.
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VBA script to filter column with multiple text strings

    Thanks!

    That is exactally what I needed. I do have one more issue... I have header information on rows 1-9 that I do not want filtered. (I want these rows displayed) However, rows 7 & 8 are not being displayed. (The filter seems to apply to these rows.) Any ideas?


    Thanks again,

    Met

+ 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. Counting Multiple Text Strings in the Same Column?
    By MurasakiK in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-24-2013, 07:21 PM
  2. [SOLVED] Need to extract text from within multiple strings and arrange it in a single column
    By sampflederer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2013, 01:35 PM
  3. Script to rearrange strings of text
    By rtabaldi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2012, 05:49 PM
  4. Script to rearrange strings of text
    By rtabaldi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2011, 04:56 AM
  5. Filtering a Column for Multiple Text Strings
    By Dynamo418 in forum Excel General
    Replies: 0
    Last Post: 09-21-2011, 11:27 AM

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