There is no direct way of doing this. You can create a macro and run the macro from UiPath to get this done.