Norie,
"v" doesn't get updated it's just a letter used as an identifier.
The value of k is what gets updated.
I have tried repeating the variName setting in different (relevant) locations in the code but it makes no difference.
I've had a go at stepping through the code and it shows that the value of k = 1 throughout the code.
When stepping with F8, it skips over the highlighted section of code below.
The line of code :
Works fine in other macros in the userform. To say that it finds the file and produces a message box "file found/exists, please try again"
I am wondering why this part of the procedure:
either, doesn't execute or doesn't find the existing file, and update the value of k accordingly.
Am I using the wrong kind of function for "find file" in this example?
Cheers
Martin
Bookmarks