+ Reply to Thread
Results 1 to 3 of 3

vba .findnext gives 'nothing'

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    vba .findnext gives 'nothing'

    Hi,

    I have made this small macro which should lookup 'sku' in worksheet 'Thistv' and write the 'number' found at the 10th column of the same row to the cell at worksheet 'Tvad' in a matrix at the cell corresponding with 'sku' and 'day'. 'day' can be found in the 8th column of the worksheet 'Thistv'.

    Please Login or Register  to view this content.
    I get problems in the line in bold, because it does not find a next value, although there are still a lot of matches,
    I think the problem is situated in the lines before, where I go first to an other worksheet, and then the method .findnext doesn't work anymore,
    any suggestions? Thanks a lot!
    Last edited by Maaike...; 04-17-2012 at 10:39 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: vba .findnext gives 'nothing'

    Hello and welcome to the forum.

    First off, could you please read the forum rules and use code tags when you post code?

    I think the issue is because you're performing another Find on column 1 before you get to the FindNext, so it will be trying to find the next "dayrow", but in the wrong sheet. Try changing your FindNext line to:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: vba .findnext gives 'nothing'

    Great! It works, thx! (and indeed, I already changed the code notation)

+ 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