Results 1 to 4 of 4

Find String in an Excel list using VBA

Threaded View

ions Find String in an Excel list... 01-22-2013, 10:29 AM
kvsrinivasamurthy Re: Find String in an Excel... 01-22-2013, 11:24 AM
ions Re: Find String in an Excel... 01-22-2013, 01:02 PM
kvsrinivasamurthy Re: Find String in an Excel... 01-23-2013, 12:22 AM
  1. #1
    Registered User
    Join Date
    10-06-2006
    Posts
    82

    Find String in an Excel list using VBA

    Dear Excel Expert,

    I have a dynamic list in Excel that will contain strings representing codes.

    i.e

    MEM
    YYZO
    KAC
    PAPKG
    QEP
    LMNT


    The user can add or delete from the list but the list will remain contiguous.


    In my vba code I currently have the below line which has the codes hard coded.

    If Not (varElement.Broker = "MEM" Or varElement.Broker = "YYZO" Or varElement.Broker = "KAC" Or varElement.Broker = "PAPKG") Then

    How do I convert the hard coded NOT (A OR B OR C ...) to use the dynamic list instead?

    Thank you
    Last edited by ions; 01-22-2013 at 10:32 AM.

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