Hiding an Excel worksheet with VBA

后端 未结 5 995
再見小時候
再見小時候 2020-12-05 17:33

I have an Excel spreadsheet with three sheets. One of the sheets contains formulas for one of the other sheets.

Is there a programmatic way to hide the sheet which c

5条回答
  •  日久生厌
    2020-12-05 17:58

    I would like to answer your question, as there are various methods - here I’ll talk about the code that is widely used.

    So, for hiding the sheet:

    Sub try()
        Worksheets("Sheet1").Visible = xlSheetHidden
    End Sub
    

    There are other methods also if you want to learn all Methods Click here

提交回复
热议问题