我怎么可以在多个取消隐藏特定工作表Excel文件。工作表使用VBA隐藏?

问题描述 投票:-1回答:1

我更新包含的参考,在多个Excel文件的纸张。这个特定的片使用VBA(xlSheetVeryHidden)隐藏。我想取消隐藏,所以我可以更新表的内容。

excel vba file editing
1个回答
0
投票

尝试:

Option Explicit

Sub Unhide()

    Dim ws As Worksheet

    For Each ws In ThisWorkbook.Worksheets
        'Check worksheet name
        If ws.Name = "Test" Then
            ws.Visible = xlSheetVisible
        End If
    Next

End Sub
© www.soinside.com 2019 - 2024. All rights reserved.