Hi, all.
I just want to ask you how can I lay out to make a loop for excels in a folder?
I do not know how I can get the excels’ list in Download folder…
Please help…
Hi, all.
I just want to ask you how can I lay out to make a loop for excels in a folder?
I do not know how I can get the excels’ list in Download folder…
Please help…
Hi @ymshin0421
Use filterby option to get only “xlsx”.
“*.Xlsx” represents to iterate through only the excel files presents in the folder.
Hope it helps!!
OR
.Net Statement:
UPD1 - Visualizations
Use For Each File in folder. Just remember to customize he username using this otherwise same code will not work on other machines or user ids.
"C:\Users\"+Environment.UserName+"\Downloads"
Thanks,
Ashok
Adressing this part in detail, we can make the specific profile folder generic by:
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),"Downloads")
Thank you for your laying out…
Hope you got the solution for your question. If yes,please mark it as solution to close the loop.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.