Hello!
I just joined this forum in hopes that one of you may have a solution to this rather bizarre problem.
What I'm basically trying to do is continuously update an Excel spreadsheet by calling VBA from the scripting language (VBS) in a rather locked down application. I'm using a loop in VBS to use xlApp.Run MyVBAMacro to pass information to Excel in real time. This works all fine and good, but the problem is that if you were to for example change the cell or spreadsheet in Excel while the loop is running, it will crash. This is really inconvenient as you cannot browse the workbook at all while the VBS script is running.
I've found that setting ScreenUpdating to False prevents it from crashing, but then you still cannot browse the workbook (and if the script is interrupted you're stuck with ScreenUpdating False). Does anyone have an idea why calling xlApp.Run would crash when you're manipulating the called workbook?
Bookmarks