Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
excel vba

ResolvedVersion 2003

Mike has attended:
Excel VBA Intro Intermediate course

Excel VBA

What is VB code to hide the gridlines on a worksheet?

RE: Excel VBA

Hi Mike

To hide the gridlines on a sheet the code line is

ActiveWindow.DisplayGridlines = False

Replacing False with True displays hidden grid lines

The ActiveWndow object in this case refers to the active sheet.

You may need to precede it with a

Sheets(SheetName).Select

if the present sheet isn't the one losing the grid lines

Hop this helps

Carlos

Mon 9 Feb 2009: Automatically marked as resolved.

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.