Professional Documents
Culture Documents
(https://www.exceldome.com/)
Select worksheet > View tab > Show group > Check Gridlines checkbox
Select worksheet > Page Layout tab > Sheet Options group > Gridlines > Check View checkbox
https://www.exceldome.com/solutions/show-gridlines-in-a-worksheet/ 1/4
9/23/2020 Show gridlines in a worksheet using Excel and VBA | Exceldome
End Sub
End Sub
OBJECTS
Worksheets: The Worksheets object represents all of the worksheets in a workbook, excluding chart sheets.
PREREQUISITES
Worksheet Names: Have a worksheet named Sheet2.
ADJUSTABLE PARAMETERS
Sheet Selection: Select the worksheet in which you want to show the gridlines by changing the Sheet2 worksheet name in
the VBA code.
EXPLANATION
This tutorial explains and provides step by step instructions on how to show gridlines in a single worksheet using Excel
and VBA methods.
Excel Methods: This tutorial provides two Excel methods that can be applied to show gridlines in a single worksheet. Both
of the methods are very similar to each other, with one using the View tab and the other using the Page Layout tab. Using
either of the two methods you can show gridlines, in a single worksheet, in three steps.
VBA Method: Using VBA the gridlines can be shown in an active or a speci c worksheet by setting the
ActiveWindow.DisplayGridlines to True.
RELATED TOPICS
https://www.exceldome.com/solutions/show-gridlines-in-a-worksheet/ 3/4
9/23/2020 Show gridlines in a worksheet using Excel and VBA | Exceldome
(
h
tt
p
s
:/
/
w
w
w
.f
a
c
e
b
o
o
k
.
c
o
m
/
e
x
c
e
l
d
o
m
e
1
/)
https://www.exceldome.com/solutions/show-gridlines-in-a-worksheet/ 4/4