For loop to run code multiple times for different excel sheets
조회 수: 6 (최근 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!