How do I generate a csv file from one sheet with a name that has an ending number that goes up if the file with that number already exists?
How do I generate a csv file from one sheet with a name that has an ending number that goes up if the file with that number already exists?
With Dir function you can check if the file already exists …
and then? do I just add Dir somewhere and it will change the name?
Hey, it's just pure logic !
If the file exists, you must increment the ending number …
Put these macros in a module, then get the filename by: vFile = getSaveFile(originalFileName)
Please Login or Register to view this content.
one thing, I'm only familiar with subs, how do I integrate this into a sub?, where does it ask which sheet to use from the workbook?
Last edited by frank35; 07-11-2014 at 09:41 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks