m4a1, please read what libertine (and others before him) says, because he has understood exactly what I am talking about. We're not talking about a mistake that "I want to hide", in fact, it's not even a "mistake", as you can tell by libertine's explanation. It doesn't even ever re-appear during the whole day, and it's only caused by the starting of DDE. Maybe you are one step further and are referring to something else, or maybe you use different platforms and you don't know precisely what we are dealing with.
Now, to libertine. I would like to get rid of this (small) problem by using the "Iserror" function in vba rather than on the excel sheet, because it seems to be that this function in the same cells as the DDE links will get calculated each time these cells get updated (even though this doesn't seem to be tiring for excel), but I don't know how to write the code needed in vba.
Also, it would make even more sense to slow down, as you suggested, the execution of macros until those DDE data are in. The problem is once again I don't know how to.
On my workbook for some reason, to make it work correctly, I have to call two times the DDE links referring to TWS. The mistakes are recorded (and probably happen) only on the first time I call the links with "request market data". I don't know how I could write some code to stop everything else while calling those links.
Or maybe I do know. On mistake go to handler...then handler tells the program to ignore the mistake if the cell returns "not available" or other problems. At this point it might be easier to just let it write all mistakes and not worry about them. Or if I could find out how to stop execution of code...
...wait I could simply write "if those cells with the DDE links are N/A then exit sub", ok, I will try it when I get home and see if it works.
Now, to libertine. I would like to get rid of this (small) problem by using the "Iserror" function in vba rather than on the excel sheet, because it seems to be that this function in the same cells as the DDE links will get calculated each time these cells get updated (even though this doesn't seem to be tiring for excel), but I don't know how to write the code needed in vba.
Also, it would make even more sense to slow down, as you suggested, the execution of macros until those DDE data are in. The problem is once again I don't know how to.
On my workbook for some reason, to make it work correctly, I have to call two times the DDE links referring to TWS. The mistakes are recorded (and probably happen) only on the first time I call the links with "request market data". I don't know how I could write some code to stop everything else while calling those links.
Or maybe I do know. On mistake go to handler...then handler tells the program to ignore the mistake if the cell returns "not available" or other problems. At this point it might be easier to just let it write all mistakes and not worry about them. Or if I could find out how to stop execution of code...
...wait I could simply write "if those cells with the DDE links are N/A then exit sub", ok, I will try it when I get home and see if it works.