I have workbooks that I use a "_v##" for versioning (yes, I know I can use version control, but in this instance, I can't). This is how I need to use this macro...
The opened file will have a name something like "2019-TestFile_v13.xlsx". When the macro runs, I would like for it to save it by automatically increment the _v portion. In this instance, it would need to save as "2019-TestFile_v14.xlsx". If "2019-TestFile_v14.xlsx" already exists, then it should try to save it as "2019-TestFile_v15.xlsx" and so forth until it is able to save it to a new file.
Keep in mind there may or may not be the previous files in the same directory (such as "2019-TestFile_v9.xlsx").
Bookmarks