Hi,
I have a exel file, and I have single excel file in a folder but the name of the excel is dynamic, and the excel file name and sheet name is same always.
Like If I have excel file name is Aug11_Aug30.xlsm, It has the same sheet name Aug11_Aug30
so how to reasd the excel file name and store in a variable so that I can pass that variable in the read range excel file.
Note. I am not using any loop here. I am just reading the single sheet only. So is it possible to get the excel file name in the case of single sheet. @Palaniyappan@HareeshMR
Hi
Hope these steps could help you resolve this
—use a assign activity like this Out_filepath = Directory.Getfiles(“yourfolderpath”,”*.xlsx”)
Where out_filepath is a string array variable
—then use another assign activity and mention like this Out_excelfilepath = Out_filepath(0).ToString
—and pass this Out_excelfilepath string variable as input to excel application scope and inside the read range mention as Split(Out_excelfilepath(0),”.”)(0).ToString