The yes/ no function

  • Good day, I have the following code in a userform, which worked fine until i tried to put in a yes no function.
    I need the code to run and check if the are any duplicate names, which it does, if a no duplicate names are found then add the data.
    However if it finds a duplicate name then it should ask the question - there is a person with the same name continue yes or no.
    if yes then it adds 1 behind the name, if no then it should exit.
    I'm sure i done it half right, but thats not good enough, i think i may have put in the end if's in the incorrect place.
    here is the current code, many thx

Participate now!

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