How to run two macro simaltaneously?

I want to open two macro enabled excel at same time and run the macro in both excel at same time to reduce processing time. How can i achieve that

@chandresh_agarwal,

Try using Parallel activity.

Thanks,
Ashok :slight_smile:

I tried but getting attached error on running.

Hi,

Do you try to open same workbook from 2 excel processes? Probably it’s impossible even though we open them manually.

Regards,

These are two different excels

These are two different excels i am trying to open and not the same

Hi,

All right. Can you try as the following?

Write 2 workflow file for running each excel macro and set AlwaysCreateNew at Process mode in ExcelProcessScope.

image

Use Parallel activity and put 2 InvokeworkflowFile activities with Isolate option.

Regards,

I tried…if my macro is running on one file, it is giving attached errors for 2nd file.

Hi,

Do the 2 macros work simultaneously in manual (without UiPath)?

Regards,

Yes two macros run simaltaneously without UiPath

Hi,

In my environment, simple 2 macors work simultaneously by the above way.
Can you try the following?

  • Put kill process activity with “excel” just before Parallel

  • Set “Reuse if exists” at Process mode property in ExcelProcessScope.

Regards,