Hello,
I have a fairly complex Excel file with a macro that automatically creates 1-n new files based on multiple source files. In the course of this, an area with DBGET cells is copied and pasted into the new file(s) as "values only".
This used to work in v11, but in v12, the INFOR.READ.VALUE formulas return #BUSY! errors for a while - and the macro ends up copying lots of "#BUSY!" to the new file instead of the actual values.
I tried to write a macro that will check the cells in the range to be copied for #BUSY! errors, wait a second and re-check as long as it finds any. But any kind of waiting seems to block re-calculation (re-calculating the workbook manually took ~30s, but when the macro was running the "#BUSY!" remained up to 10 min before I killed it). Even when I implemented waiting with a loop like this - DoEvents does not seem to work for the Add-In:
waitPeriod = Now + TimeValue("0:00:01")
While Now() < waitPeriod
DoEvents
Wend
Do you have any other ideas?
Best regards,
Kai