+ Reply to Thread
Results 1 to 4 of 4

loop through workbooks to find term, find not working

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    loop through workbooks to find term, find not working

    I am building a macro to loop through workbooks and use a UDF "findTerm" to return true if excel can find the term in the iterated workbook.

    For each workbook in the loop, I use:
    Please Login or Register  to view this content.
    The problem is, the function does not return True even when the term is present in the workbook. The function returns false, and yet when I do a manual search there it is.
    Last edited by bsapaka; 04-14-2015 at 04:44 PM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: loop through workbooks to find term, find not working

    Where do you mention the list of workbooks to search in ?
    Last edited by PCI; 04-14-2015 at 02:24 PM. Reason: typo
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: loop through workbooks to find term, find not working

    the list of workbooks are iterated by a loop which calls the function I pasted above

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: loop through workbooks to find term, find not working

    Hi bsapaka

    Show us the Code that calls the Function.

    Your Function is looking in the Active Sheet...is that the intention?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find, loop and paste code not working
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-19-2014, 10:31 PM
  2. Loop to find next empty cell to the right not working.
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2006, 10:16 AM
  3. Filter/find/isolate one specific term?
    By Jim Thomlinson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] Filter/find/isolate one specific term?
    By williejoeshaver in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Filter/find/isolate one specific term?
    By williejoeshaver in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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