+ Reply to Thread
Results 1 to 4 of 4

For Exit Loop in instr function

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    For Exit Loop in instr function

    Hi. Trying to speed up a macro that utilizes the instr function. Attached is a sample workbook. Is there a way to exit the loop early to maximize speed in this macro?

    Thanks

    Sample code:

    Please Login or Register  to view this content.
    Last edited by drcheaud; 08-18-2011 at 12:15 AM.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: For Exit Loop in instr function

    Use the .FIND method as opposed to Instr ??

  3. #3
    Registered User
    Join Date
    08-23-2010
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: For Exit Loop in instr function

    not sure how to implement the find function. can a code be written which will use a range of data as the find criteria and then search a string for the substring?

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: For Exit Loop in instr function

    Please Login or Register  to view this content.



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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