Hi
Check this thread if you are looking for a scrip to run to refresh the excel file
Or you can use a activity to perform this
https://docs.uipath.com/activities/docs/refresh-data-connections-x
If you are not getting this activity go to activity panel and right click on filter icon in that panel
And enable show studioX
Then search for it and you can see this activity
Cheers @RPA-botDev