Hello again
I’m working on some code to export selected queries to excel, I was quite happy with the code, nicely error trapped I thought…. Then I tried to export the queries to without closing Excel, or the file within Excel and got an error message. This should have been expected, Excel wont let Access over write an open file. How do I either provide an error message saying ‘shut excel’ (or similar).
I think I’ve seen somewhere you can write VBA to react to error messages? If so how? If I can’t do this then how do I check for an open excel file? If I can do that the rest is simple if … then … else stuff.
Thanks for the help
Ian