I'm using a sligthly modified version of this code here: http://www.contextures.com/excelvbapdf.html
to save a worksheet as pdf.
The problem is:
If a pdf with that name already exists it doesn't ask, it just overwrites.
How can this be fixed?
I'm using a sligthly modified version of this code here: http://www.contextures.com/excelvbapdf.html
to save a worksheet as pdf.
The problem is:
If a pdf with that name already exists it doesn't ask, it just overwrites.
How can this be fixed?
<----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left
If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.
Add the code in red where indicated.
Please Login or Register to view this content.
One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.
A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.
It turns out the problem was a bit different and I managed to solve it.
Nevertheless, I was also wondering how I could check if a file existed. Now I know, thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks