I have a working code where the user types the part number and the vba print's all pdf files inside the part number folder.
When there is only one version of the files it is working great, but when a new version is added, I can't figure out how to print only the new version of files.
For example: Part number 1012030. The folder would be "C\User\1012030\" then these files are inside:
1000210669_E.pdf (old)
1000210669_01.pdf (old) 1000210669_02.pdf (new)
1000210670_01.pdf (old) /1000210670_02.pdf (new)
the first revision is always "_E", then comes "_01"; "_02" and so on.. the code would look the the first pdf, loop until it finds the newest revision, print it, move to next file and repeat..