+ Reply to Thread
Results 1 to 2 of 2

looping a search function

  1. #1
    Registered User
    Join Date
    03-31-2008
    Posts
    8

    looping a search function

    Hi,

    I'm trying to create a loop which runs a search function to find a particular word, example 'Currency', which is a heading. There are numerous currency headings thruout the spreadsheet and I want find them all to perform certain functions. However, I'm not sure how to stop the search after it's found the last 'currency' heading. Any ideas?

    Thank you.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475
    Quote Originally Posted by pvo2
    Hi,

    I'm trying to create a loop which runs a search function to find a particular word, example 'Currency', which is a heading. There are numerous currency headings thruout the spreadsheet and I want find them all to perform certain functions. However, I'm not sure how to stop the search after it's found the last 'currency' heading. Any ideas?

    Thank you.
    Good evening,
    If your Headings are in row A then this code will loop through row A and when it finds the word "Currency" it will perform an action two rows down:
    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