Answers for "excel vba hide gridlines on sheet"

VBA
0

excel vba hide gridlines

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
Posted by: Guest on March-18-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language