Hello!
So, I have been searching all over the internet for the solution to this problem I am having and I am hoping someone here can help me out.
What my macro supposed to do is to count a number of specific files in a folder then add the count +1 at the end of the file.
Here is the part of code I have...
I have tried changing the i definition to integer, changing the variable "*" to "*.pdf", removing criteria and tried to find all files in a folder, but none worked.
what happens now is macro only goes through 1 file (strFilename2 when should be going through myfile1), then determines that myfile1 ="" so it keeps renewing the file already in the folder with the same name.
I am really not sure what is wrong here and how it get the second criteria mixed with the first one, and why it is not counting.
I appreciate all your help.
Jake
Bookmarks