We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
If you have only sheet available in Excel which is Sheet1. Then, obviously you will get this exception. Please change this to :-
Sheet sheet = workbook.getSheetAt(0);
Or if you want to menton the sheet name then use this code:-
Sheet sheet = workbook.getSheet("Sheet1");
Hope, this solved your problem.
If you have only sheet available in Excel which is Sheet1. Then, obviously you will get this exception. Please change this to :-
Sheet sheet = workbook.getSheetAt(0);
Or if you want to menton the sheet name then use this code:-
Sheet sheet = workbook.getSheet("Sheet1");
Hope, this solved your problem.