How to know copy process finish

Hello,

Please kindly help me guys.

I have program to copy data from macro to excel.
My task is copy all data from macro to each sheet in excel.
ideally, i need to finish copy process first and continue to paste.

The issue is process time to finish copy is vary due to it access from server and data sometime so many and sometime is little.
The impact is sometime i face the error due to paste button is unavailable when robot click button paste.

Could I know how to know copy data process finish or not in Excel/Macro by uipath?

Thanks in advance.