Know the state of mathcad calculation through API Excel
Hi,
I had conflicts between Excel VBA and Mathcad. Basically, VBA seems to not wait for Mathcad to finish its calculation, leading to errors (e.g. not retrieving outputs). I solved most of these issues by adding the command
Application.Wait (Now + TimeValue("xxx"))
which forces VBA to wait xxx seconds before resuming the code.
Still, I was wondering if there is a way to know from VBA the state of Mathcad (is it calculating or is it ready to start calculations?). That way, I can tell VBA to wait as a function of Mathcad state.
Regards,

