For loop to run code multiple times for different excel sheets
3 次查看(过去 30 天)
显示 更早的评论
I have a code that I wrote for one excel sheet and I need it to run for 5 more excel sheets how can I do this using a for loop?
2 个评论
Geoff Hayes
2020-5-11
Fatemah - what does your code look like for the one sheet? Are you just changing the sheet name on each iteration? What should be done with the data that you read?
回答(1 个)
Harsha Priya Daggubati
2020-5-14
Hi,
If your excel workbook has multiple sheets, then this thread might help you give an idea about how to proceed.
If your data is spread across multiple excel files, then you can get access the excel files using 'dir' command. This thread might help you.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!