My workaround for this problem is:
-
In the file (batch, powershell or whatever) that you use to run the HTML, before openning the HTML, save a 0 to a csv file i.e.
C:\Kantu\csv\OK.csv
-
Add a command at the beggining of your macro to save to a file some flag i.e.
csvSaveArray | OK (variable with an array [[1],[2]]) | C:\Kantu\csv\OK.csv
-
In the file (batch, powershell or whatever) that you use to run the HTML check after openning the HTML (20 seconds or so) if the file
C:\Kantu\csv\OK.csv
already has the 1 saved in the first position, if it’s not, then try to open again the HTML.
I use this workaround and now it doesn’t matter if the “No tab with id:” error appears