Reading multiple worksheets in Excel

Hi,

I have an excel which has two worksheets. I need to read the excel and do a check for each columns on each worksheet. I am able to do my check, if my excel had only one worksheet. How do I go about working with multiple worksheets on the same excel file.

File Name: TESTExcel.xlsx

Sheet 1 Name: Sheet1.xlsx

Sheet 2 Name: Sheet2.xlsx

Any help will be greatly appreciated.

Thanks

April 30th, 2015 6:19pm

Use the sheet name.

$wb.WorkSheets.Item('sheet1.xlsx')

Free Windows Admin Tool Kit Click here and download it now
April 30th, 2015 6:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics