While writing some HECRAS Controller code in Visual Basic for Applications (to open HEC-RAS, run a steady flow file with multiple maps stored to disk via RAS mapper, and close HEC-RAS), I came across the following message:
“MS Office Excel is waiting for another application to complete an OLE action”
The pop-up on the OLE action stopped the process from running to completion, which was a problem as the code was to be for an automated process where I wouldn’t be sitting at the computer.
It always occurred about the same time in the process (about 2 minutes into saving maps in RAS Mapper). If you were near the computer you could hit “OK” and the message would go away and the process would complete.
Didn’t seem to be a problem with HEC-RAS, but almost like visual basic thought HEC-RAS was not working properly when it was waiting for maps to be stored to the disk.
My workaround was to use the “Application.DisplayAlerts = False” code in Visual basic to suppress the message and have the process run without me being there. Not a perfect solution – but for this current project it works!
Wondering if anyone else has ever encountered a similar message?
– Rich