+ Reply to Thread
Results 1 to 7 of 7

Instr Function - Replace String 2 with Variables?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Instr Function - Replace String 2 with Variables?

    Thanks Shg,
    I've seen some posts on this board utilizing Regular Expressions and will delve further into that.

    I've never seen a Loop in this particular instance.
    In pseudo code, how would this be employed?

    Mark

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Instr Function - Replace String 2 with Variables?

    for each littlestring in  arrayofstrings
        if instr(stringtotest, littlestring) then
            do something
            either exit for or continue looping
        endif
    next littlestring
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Instr Function - Replace String 2 with Variables?

    Thanks Shg

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Instr Function - Replace String 2 with Variables?

    You're welcome.

    Here's a place to start for RegExp: http://msdn.microsoft.com/en-us/library/ms974570.aspx

  5. #5
    Forum Contributor
    Join Date
    07-11-2009
    Location
    NYC,USA
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: Instr Function - Replace String 2 with Variables?

    Great Link!

    Extremely informative!

    Much obliged!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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