+ Reply to Thread
Results 1 to 2 of 2

VBA FindNext function does not work in a function

  1. #1
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    VBA FindNext function does not work in a function

    Hello,
    Who can help me out here ?

    I am using the FindNext function for searching large ranges of data.
    That works fine in a sub, but not in a function.

    Works fine in a sub:

    Please Login or Register  to view this content.
    But not in a Function:

    Please Login or Register  to view this content.
    On the row "Set searchItem = .FindNext(searchItem)" the searchItem resets to 'nothing'.

    What could I be missing here ?

    Thanks for your help.

    Arnold

  2. #2
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: VBA FindNext function does not work in a function

    I just found out that is seems to be a 'known-issue' with functions.
    Fixed it by this instead of FindNext:

    Please Login or Register  to view this content.
    So i think FindNext would have been faster, but for now I will use this.
    Arnold

+ 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