The question may be very stupid, but I'm still interested. There is such code:

EXL:=CreateOleObject('Excel.Application'); ... EXL.Run('makrosv_vba'); ... 

Now what I would like to clarify. The operator EXL.Run ('makrosv_vba') completely executes the macro or just throws a command to execute vba Eklaevsky and be healthy? In other words, do I need synchronization (the macro is rather heavy, and I need to have further Delphi code executed only after the macro)?

    1 answer 1

    Synchronously, will be waiting.

    • Yes, I tested it a bit with a delay in executing the vba code, really waiting - Bran