File should have only 1 sheet and no hidden sheets.. And error Message:File contain one more sheets other than specific sheets.
Please reply ASAP
Validation
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sibeesh VenuRank #27 · 42.9K reputationPosted Apr 29, 2015, 1:14 AM EDT
Use
Excel.Workbookand then you can use theWorkbook.Sheets.Count()in afororwhileloop.Please refer here:
http://stackoverflow.com/questions/5080789/how-can-i-determine-how-many-worksheets-there-are-in-an-excel-workbook
http://stackoverflow.com/questions/9275939/get-number-of-sheet-in-xls-excel-file
Please up vote and accept if it helps you.
Kindest Regards
Sibeesh Venu
www.sibeeshpassion.com
Goutam Pal14 reputationPosted Apr 29, 2015, 1:17 AM EDT
Sibeesh VenuRank #27 · 42.9K reputationPosted Apr 29, 2015, 1:26 AM EDT
Please check the links I have shared.
Goutam Pal14 reputationPosted Apr 29, 2015, 2:21 AM EDT