Open a excel file with random name

Hello,

I have an excel document with a random name so (report*****.xls) that my robot downloads in my general download folder ( the site doesn’t give you the option to choose your location).

Now I’m not able to open that excel because of the random name. I have an array variable called file with an assign activity: Directory.GetFiles(“C:\Users\PNIE\Downloads”,"*.xls").

any solutions or insights?

@seldo Welcome to our Uipath Community
you are in the right path. Just loop over your files array and pass the loop item into Excel application scope

tnx. I found that2min after I posted :stuck_out_tongue:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.