I have done this by running Excel macro from uipath. In Excel you can record / create vba code easily.
Hope it helps