📜  excel vba 隐藏网格线 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.348000             🧑  作者: Mango

代码示例1
Private Sub TurnOffGridLines(target As Worksheet)
    Dim view As WorksheetView
    For Each view In target.Parent.Windows(1).SheetViews
        If view.Sheet.Name = target.Name Then
            view.DisplayGridlines = False
            Exit Sub
        End If
    Next
End Sub