How to hide sheet in excel without using VBA code

Hi Team ,
Do we have any option to hide sheet in excel without using VBA code . Also excel activities we are using in our project pretty old to avoid some errors .So delete sheet or hide sheets activities are not available .

Please advice…

regards
Krishna

Hey @Krishnakumar_Vasudevan ,

You can use Balareva excel activities to hide/unhide Excel sheets.
Kindly refer below thread

Hope it helps you out!

1 Like

Hi @Krishnakumar_Vasudevan ,

Could you maybe share your Excel dependency/Package version used ? So that we can confirm on the methods/activities available.

excel 2.12.3
system activity 21.4.1

thanks for the help , i am not sure whether we can import and use in our organization . Please advice.

HI,

We can achieve it using ClosedXML as the following sample.

image

Using wb As New ClosedXML.Excel.XLWorkbook(filename)
    Dim sheet As ClosedXML.Excel.IXLWorksheet = wb.Worksheet(sheetName)
        sheet.Hide()
    wb.Save()
End Using

Sample20231030-3L.zip (9.3 KB)

Regards,

@Krishnakumar_Vasudevan

You can use invoke code and use the below

Cheers

may be this will help you using invoke code

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