VBA code dont seem to be declared object outside the loop

  • Hello i got huge problem with my vba code. I declared find, and from this findNext, but the problem is that findNext can't see find and its giving me error
    Here's the code:

    Its giving me this error:

    I dont have clue what may be the problem, beacuse when i add watch to "LpDoZnalezienia" its giving me that its finding something, so why findnext is not working?

  • You first Find for "lp." then you Find for "Razem" FindNext is now looking for Razem, and LpDoZnalezienia will be set based on "Razem", not on "lp."

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!