How can a border be set around multiple cells in excel

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