In my Vsto Excel project, i want to hide few sheets of my Excel using vsto code ? how i can Hide any particular sheet i.e using its name or sheet No. ?
Thanks a lot in advance.
Lets assume name of the excel is MySheet.
To hide it, use
((Excel.Worksheet)Globals.ThisWorkbook.Sheets["MySheet"]).Visible = Excel.XlSheetVisibility.xlSheetHidden;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With