To start, I'm not looking for different file saving methods (unless of course you have some cool new way to do it), more so, I'm posing this question: how reliable is the save as method for saving xls files through VBA? I pose this question because I have a workbook that is used by multiple people. One of the macros in this workbook saves the appropriate files to the appropriate directories based upon inputs the user has selected in the workbook. The macro is triggered off of a button click. I did not write the code behind this particular macro. Occasionally, I get buzzed in my office and am told a file that was supposed to save to a certain place didn't save, but it did print (which it should).
What I find odd about this is I can't find much of a pattern to it. I've tested the code multiple times and cannot replicate the error. Furthermore, when someone alerts me to this issue, the first thing I always ask is "Did the program bug out?" because there is little to no error handling in the code. The program doesn't bug though, it just doesn't save the file like it should. This happens MAYBE 1 time out of 1,000 it seems. Possibly even less. I've reviewed the code several times, and everything appears spot on, except for the lack of error handling, so I've finally decided to post this question to those that may be in the know. Is saving through VBA 100% reliable? I just don't understand why the file wouldn't save and the code not bug out, especially since there is no error handling around this chunk of code. Anyone have any thoughts or input about your experiences?
Bookmarks