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
Vikas_M
(Vikas M)
October 29, 2023, 7:11pm
2
Hey @Krishnakumar_Vasudevan ,
You can use Balareva excel activities to hide/unhide Excel sheets.
Kindly refer below thread
Hi Friends,
I have included the below new custom components in the package.
1.Create Workbook.(Create a new worksheet)
2.Copy to File (Copy the worksheet to another excel file).
3.Copy to WorkBook (Copy the worksheet inside the workbook).
4.HideUnhide the worksheet
5.Protect Unprotect the worksheet
[image]
Create WorkBook
Properties
[image]
Sample : CreateWorkbook.zip (18.5 KB)
Copy To File
This activity copies the work sheet to an another excel file. If the another file is not ex…
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.
Yoichi
(Yoichi)
October 30, 2023, 12:23am
6
HI,
We can achieve it using ClosedXML as the following sample.
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,
Anil_G
(Anil Gorthi)
October 30, 2023, 2:47am
7
@Krishnakumar_Vasudevan
You can use invoke code and use the below
Cheers
may be this will help you using invoke code
system
(system)
Closed
November 2, 2023, 6:28am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.