How to skip the hidden sheet in excel

Hi,

I need to skip the hidden sheet in excel,
(eg: Sheet 2 is hidden, and I need to proceed with only Sheet 1 & Sheet 3).
Am using the “Get workbook sheet” activity, but it will read all three sheets.
In the future, the sheet name & count of sheets may increase.
If the sheet is hidden, the BOT should not read the hidden sheet.

Any suggestion !!

Hey @Prasaanth_S1
You can check out this thread

Cheers.

Hi @Prasaanth_S1

There is a component in the market place, check this out:

Hope this helps,
Best Regards.

HI,

Can you try the following sample using ClosedXML?

workbook = new ClosedXML.Excel.XLWorkbook(filename)

Then

visibleworksheets = workbook.Worksheets.Where(function(s) s.Visibility=XLWorksheetVisibility.Visible).Select(Function(s) s.Name).ToArray

Sample20230320-3L (2).zip (10.3 KB)

Regards,

3 Likes

FYI another approach:

Modern ForEachExcelSheet will skip hidden sheet.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.