I have an Access 2003 application that uses VBA to create various Excel spreadsheets. It’s been used successfully for many years, through XL versions 97, 2003, 2007, and 2010. Recently, the client upgraded to XL 2016 and started to experience problems with files failing to open. To troubleshoot, I also updated my development computer (Windows 10) to XL 2016, but the files opened successfully on my computer. Therefore, I made an on-site visit to the client and discovered that the VBA would fail on her computer if the file it was trying to open did not exist. On my development computer, XL would quietly create the missing file and then open it.
I reasoned that there must be an XL setting that is different on the two computers that would cause XL to fail to create the new file on her computer, yet create it quite happily on my computer. Does anybody know what such setting might be?
I eventually realized that I could explicitly test for the file’s existence and create it if it was missing. I made that change and sent it to the client. However, I don’t know whether it will actually work because it always works on my development computer. So I really would like to understand if there is a setting that governs the troubling behaviour.
Thanks for any insight.