spikepl
Eledittingent Beliped
- Local time
- Today, 13:26
- Joined
- Nov 3, 2010
- Messages
- 6,142
I export some spreadsheets where I after export have a routine to autofit the columns: it opens the spreadsheets, autofits and closes again.
I have a small delay loop in the code between the transfer and the autofit, as experience showed that the program control can move onto the next statement and try to open the excel file but the file is not quite ready yet.
Today I had a heavy query, so my standard delay was not enoough. That was a patch anyway. So how can I in code see (or ensure) that Access has finished fiddling with the Excel file?
I have a small delay loop in the code between the transfer and the autofit, as experience showed that the program control can move onto the next statement and try to open the excel file but the file is not quite ready yet.
Today I had a heavy query, so my standard delay was not enoough. That was a patch anyway. So how can I in code see (or ensure) that Access has finished fiddling with the Excel file?
Last edited: