|
求各位大神帮忙,本人是VBA小白,希望实现下列功能在 quotation cover表中 A27----A35 单元格中输入任何字符,对应深度隐藏表格(spec1--spec9)就会显示出来。如果单元格是空白 就是隐藏。之前照网上说的做了 但不成功 请各位帮帮忙。祝大家端午快乐
之前参考的VBA
thisworkbook:
- Private Sub Workbook_BeforeClose(Cancel As Boolean)
- Dim sht As Worksheet
- Sheets("sheet1").[a1] = ""
- For Each sht In ThisWorkbook.Sheets
- If sht.Name <> "Sheet1" Then sht.Visible = xlSheetVeryHidden
- Next
- End Sub
[color=rgb(51, 102, 153) !important]复制代码
sheet1:
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim sht As Worksheet
- If Target.Address <> "$A$1" Then Exit Sub
- For Each sht In Sheets
- sht.Visible = xlSheetVisible
- Next
- End Sub
[color=rgb(51, 102, 153) !important]复制代码
|
|
|