if there are multiple excel files in folder and I want to read all excel files without forloop then how i do it
file folder path is the folder where all excel files then i want to read all excel files.
if there are multiple excel files in folder and I want to read all excel files without forloop then how i do it
file folder path is the folder where all excel files then i want to read all excel files.
Hi @yogitagaikwad2206
Try this
Directory.GetFiles(Folderpath,“*.xlsx”)
I hope it will helps!!
Hi,
I hope this will help you,
excelFiles = Directory.GetFiles(folderPath, “*.xlsx”)
System.Collections.Generic.List<System.Data.DataTable>
. Let’s name this variable “excelDataTables”.System.Collections.Generic.List<System.Data.DataTable>
.System.Collections.Generic.IEnumerable<System.Data.DataTable>
.excelFiles.Select(Function(file) New System.Data.DataTable().ReadRange(file))
.By using the “Invoke Method” activity with the “AddRange” method and the “Read Range” activity, you can read all Excel files without explicitly using a for loop in UiPath Studio.
Thank you
can u send workflow of read all csv files from one folder without for loop and print file names