Thanks a lot, and I take my hat off to you !!!
But just one wish more :
In the above sample code, there is (of course) a loop, which allows you to increase the progress Bar. OK.
But in case you have some macro where there is no loop, ie executing only native commands of Designcad, but commands that could take a lot of time to be finished, could you provide us a "busy indicator"_exe (ie. a windows that shows that work is in progress, without counting the progress ratio), in order to be sure Designcad is working, and not as "not responding", during the macro execution ?
Of course with the same technique, consisting in intercepting the sys$(40)="Kill PB"
Thanks in advance ! (I'm not experimented enough for OLE)