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.

Excel tip:

View a unique list

You have a column with hundreds of entries, and you need to see what unique items are entered in it. Select any cell in that column, hold down Alt and press the down arrow: Excel produces an alphabetically-sorted list of unique entries in that column.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.