+ Reply to Thread
Results 1 to 3 of 3

How to search a range for a suburb in a large range

Hybrid View

  1. #1
    Bogan..
    Guest

    How to search a range for a suburb in a large range

    How to search a range for asuburb that if found could contain up to 50
    different corresponding post codes. After its found how can it be checked
    againsts an example.

  2. #2
    William Benson
    Guest

    Re: How to search a range for a suburb in a large range

    Can you provide more details? What does your data look like (what is in
    rows, cols)?

    "Bogan.." <Bogan..@discussions.microsoft.com> wrote in message
    news:B16694E7-7C5E-41E2-AA5B-637504697E73@microsoft.com...
    > How to search a range for asuburb that if found could contain up to 50
    > different corresponding post codes. After its found how can it be checked
    > againsts an example.




  3. #3
    Tom Ogilvy
    Guest

    Re: How to search a range for a suburb in a large range

    set rng = Range("A1:A50").Find( "string")

    set rng1 = rng.offset(0,1).Resize(1,50)

    for each cell in rng1
    if cell.Value = "ExampleValue" then
    msgbox "Found"
    end if
    Next

    --
    Regards,
    Tom Ogilvy





    "Bogan.." <Bogan..@discussions.microsoft.com> wrote in message
    news:B16694E7-7C5E-41E2-AA5B-637504697E73@microsoft.com...
    > How to search a range for asuburb that if found could contain up to 50
    > different corresponding post codes. After its found how can it be checked
    > againsts an example.




+ 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