Results 1 to 6 of 6

Thread: (Resolved) Get the next two words after I find a string.

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Location
    Three Rivers, MI
    Posts
    354

    (Resolved) Get the next two words after I find a string.

    Created for Bill Smith Bill Smith 100 Maple St. Nowhere, MI 49091 PROGRAM INFORMATION UNDECIDED ABOUT YOUR CAREER PATH?
    I can find the position where "Created for" occurs in the string
    VB Code:
    1. Private Function FindText(ByVal strText As String) As String
    2.         Return InStr(strText, "Created for")  
    3.     End Function
    I am trying to get the first and last name that occurs right after the "Created for" in that string but I have not found a good way to do so.

    Essentialy there are multiple files in a directory that I am spinning though and changing the name of the files to match the name in the file.
    Last edited by BukHix; Sep 27th, 2009 at 08:27 PM. Reason: Resolved

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