A lead to dig into (I haven't tested). In solidworks most messages are not in the form: msgbox(Message, Icon, Buttons) but most often: SendMsgToUser2(Message, Icon, Buttons)
This is unfortunately what I fear, even if it's not too complicated to do I find it a shame that a "ready-made" command only works half on SW2021 and that it works completely on Excel 2013, even if the tempo is not precise...
In this case, I'm thinking of making a function asynchronously, unless there is a tempo function that exists.