Hi Everyone,
I have the following code I cobbled together from a few other scripts I use often. It does everything I want it to do with one exception.
Basic Function:
1. Ask if user wants to save their daily and clear the template
2. Pull name and date from cells C3 & J3 and format a specific way.
3. Open SaveAs dialog with formatted name
4. After user Saves clear content and date and save base template without 'overwrite' dialog.
Here is the snag I've found:
If they hit "Cancel" on step 3 instead of hitting save, the script continues with clearing the data etc.
What I want to happen if they cancel at step 3, is for the sub to be exited so none of the data is lost until they are ready to try saving again.
I attempted to add this code:
But all that happens is the file is saved as "FALSE" if the user hits Cancel.Please Login or Register to view this content.
Is there a solution to this or do I just have to instruct users not to hit Cancel and hope for the best?
I apologize in advance that I have to post an image of the code, everytime I hit post I'm getting a SQL Injection Block error from my county's web security.
Full Code:
Capture.JPG
Bookmarks