VBA Automation Error (System call failed) while running Excel 2013 macro from Access 2013 -
I have an Access (2013) database that I want to store / process all data obtained from the Quatttrix Online Survey To use. The raw data downloaded from Qualtrics is a csv file that is in the format to import poorly, so I have found a fairly complicated macro in Excel (2013) that I have to reach before importing Use pre-process data for
In Access, I use the following code to open an Excel file in macro, run macro, save the workbook, and turn it off. It was working well for many months, but now when I run it, it stops near the macro with the runtime error of the end of Excel. -2147417856 Automation Error System Call Failed
ActiveObject BookWbkName & amp; ".xlsm", strWbkPath appExcel.Run ProcName, ProcArg appExcel.Workbooks (WbkName) .save so appExcel.Workbooks.Count = 1 then appExcel.Quit Otherwise appExcel.Workbooks (WbkName) .Close really end up the active Krenoprvokbuk only a custom function to do so, meaning name, app Excel Excel application workbook is always open properly, and start to run the macro, but it is really reached the point in Never Access Control VBA Returns and Workbook Survival Is.
This insert runs fine if I open the workbook before running the admissions process, every major VBA phase (Access and Excel breakpoints in both), and through an all entirely at a time Step. It just fails if I try to run VBA to finish it all from the beginning.
Based on the evidence that I have seen online, I suspect that the error is occurring because Excel is taking a very long time to run the macro (we recently did something in the Quatttix Survey New variables are added), and the Access Excel is trying to regulate control before it expires, I suspect that any business to solve a suspicious problem or check it further Hariya has not found the way.
I was not trying to temporarily insert, wait routine error Hँdling for my users, but it does not work at all, because the error message still pops up at the same time as before Was there.
then t => - + 2147417856 then TWAT = time TWAT = DATEADD ("S", 15, TWait) TNow & gt; = TWait TNow = Resume the time lapse Next Any help would be appreciated!
You can use DoEvents tried pre-processing macros ? If you have a loop where you are processing the CSV file line by the line, then use the DoEvents to run each time to give any pending event Chance will be overkill to call it on every line, so start with each of the 100 lines and adjust from there. Given that the macro when you take steps through Subs, then it would appear that if the problem is not the overall performance of this entry is to throw an error because Excel is unresponsive appears Then it may be enough to stop leaving DoEvents
Comments
Post a Comment