Consulting

Results 1 to 3 of 3

Thread: Searching through CSV files

  1. #1
    VBAX Newbie
    Joined
    Dec 2007
    Posts
    2
    Location

    Searching through CSV files

    I'm trying to figure out a way to search through a bunch of CSV files and record occurrences of certain words. I found some code from this forum which is almost exactly what I need except one problem. (Code by DRJ) If the word is squished somewhere within a text string it is not found. My CSV files have many URLs in them and I am searching for certain key words within these URLs. Any suggestions on a modification which would allow it to find words within the text? (Great code by the way DRJ! )

    This is the code I was referring to: ...
    vbaexpress.com/kb/getarticle.php?kb id=159#instr

    Any help would be appreciated. Thanks in advance.

    MNW

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    That should do just that, because it uses LookAt:=xlPart in the Find.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Newbie
    Joined
    Dec 2007
    Posts
    2
    Location

    Smile oops

    I see my mistake. It seemed like it was not working since it would not find stuff, but that is because it was only looking the xls files. Once I changed the file extension in the code, it searched through all my CSV files which of course found all the occurrences as it was supposed to.

    Thanks
    NMW

Posting Permissions

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