# How to Remove Gridlines in Excel Graph (5 Easy Methods)

Get FREE Advanced Excel Exercises with Solutions!

While working with Microsoft Excel, we may use horizontal and vertical graph gridlines to enhance the content in a chart with axes simpler to interpret. Sometimes, when we insert a graph, it comes with gridlines by default, which may not be ideal for watching. In this article, we will demonstrate different methods to remove gridlines in Excel Graph.

## What Are Gridlines in Excel Graph?

Gridlines are horizontal lines that span the chart plot and indicate axis divisions. These assist chart viewers to understand what value an unlabeled data point represents. It provides essential indications to the observer, especially for big or sophisticated charts.

Gridlines stretch throughout the plot area of the chart from any horizontal and vertical axes. In 3-D charts, depth gridlines can also be displayed. Gridlines correspond with primary and secondary tick markings on the directions when tick markers are presented for primary and secondary units.

You may use transverse and longitudinal chart gridlines to make the data in a chart with axes simpler to read. Gridlines stretch throughout the plot area of the chart from any horizontal and vertical axes.

## How to Remove Gridlines in Excel Graph: 5 Easy Methods

Suppose, we have a set of data, and the dataset is a representation of a companyâ€™s monthly revenue. So, the dataset consists of the information on the revenue for each month in column C and 9 months in column B.

Now, I want to display the graphical representation of this dataset. For this, go to Insert > Charts. But we may not want to display the gridlines in Excel graphs. So, we need to remove those gridlines from the graph. There are various ways to do that. Letâ€™s demonstrate all the methods to remove gridlines from an Excel Graph.

### 1. Use Delete Key or Delete Option to Remove Gridlines from Graph

We can simply remove the gridlines from the Excel graph using the delete key or delete option. For this, we just need some simple clicks. Letâ€™s follow the steps down.

STEPS:

• Firstly, select any gridlines by clicking on one of them except the first gridline.
• Secondly, right-click and click on the Delete context menu option.

• Or, you can just select the Vertical (Value) Axis Major Gridlines to remove the vertical gridlines and press the Delete key from your keyboard.

• And, if you want to remove the horizontal gridlines, click on the Horizontal (Value) Axis Major Gridlines and press the Delete key on the keyboard to erase them.

• Finally, simply just following these steps will remove the gridlines from your Excel graph.

### 2. Clear Gridlines from a Graph by Quick Layout Option in Excel

Quick Layout allows us to easily modify the general layout of the chart by selecting one of the predefined layout choices. We can clear gridlines from Excel graphs using the quick layout option. For this, we have to look at the procedures.

STEPS:

• First of all, click on the graph and go to the Chart Design from the ribbon.
• Second, under the Chart Layouts category, click on the Quick Layout drop-down menu.
• Thirdly, select the layout that does not contain the gridlines. So, we select Layout 4.

• And, thatâ€™s it! This will remove all the gridlines from the graph.

### 3. Delete Gridlines from Graph with Chart Element

Chart elements refer to the many components that make up a chart. To use the char element to remove the gridlines from the Excel graph, we need to look at the steps below.

STEPS:

• To begin, click on the graph and go to the Chart Design from the ribbon.
• Then, click on the Add Chart Element drop-down menu, under the Chart Layouts category.
• Further, click on the Gridlines and select Primary Major Horizontal or Primary Major Vertical which gridline you want to remove.

• Instead of doing this, you can click on the Plus (+) sign, which is the Chat Elements.
• Then, uncheck the box which is for the Gridlines or uncheck Primary Major Horizontal or Primary Major Vertical which gridline you want to clever from your Excel graph.

• And, thatâ€™s all! The gridlines are removed from your graph.

### 4. Format Gridlines Feature to Remove Gridlines from Excel Graph

We can format our Excel graph gridlines to remove them. Letâ€™s see the steps to remove gridlines from the Excel graph using the format gridlines.

STEPS:

• First, click on any gridline then right-click.
• Next, go to the Format Gridlines option.

• Then, select No line to remove all gridlines from the graph.

• Finally, following the steps will remove all the gridlines from your Excel graph.

### 5. Excel VBA to Remove Gridlines from Excel Graph

With Excel VBA, users can easily use the code which acts as Excel menus from the ribbon. To use the VBA code to remove gridlines from Excel graphs, letâ€™s follow the procedure.

STEPS:

• Firstly, go to the Developer tab from the ribbon.
• Secondly, from the Code category, click on Visual Basic to open the Visual Basic Editor. Or press Alt + F11 to open the Visual Basic Editor.

• Instead of doing this, you can just right-click on your worksheet and go to View Code. This will also take you to Visual Basic Editor.

• This will appear in the Visual Basic Editor where we write our codes to create a table from range.
• Thirdly, click on Module from the Insert drop-down menu bar.

• This will create a Module in your workbook.
• And, copy and paste the VBA code shown below.

VBA Code:

``````Sub Remove_Gridlines()
Dim a As Axes
Dim wsht As Worksheet
Dim ChtObj As ChartObject
For Each wsht In Worksheets
Â Â Â Â wsht.Activate
Â Â Â Â Â Â Â Â For Each ChtObj In wsht.ChartObjects
Â Â Â Â Â Â Â Â Â Â Â Â With ChtObj.Chart
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â For Each a In ChtObj.Chart
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â .Axes.HasMajorGridlines = False
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â .Axes.HasMinorGridlines = False
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Next a
Â Â Â Â Â Â Â Â Â Â Â Â End With
Â Â Â Â Â Â Â Â Next ChtObj
Next wsht
End Sub``````
• After that, run the code by clicking on the RubSub button or pressing the keyboard shortcut F5.

• And, this will remove all the gridlines in the Excel graph from the active worksheets.

## Conclusion

The above methods will assist you to remove Gridlines in Excel Graph. Hope this will help you! If you have any questions, suggestions, or feedback please let us know in the comment section.

## What is ExcelDemy?

ExcelDemy Learn Excel & Excel Solutions Center provides free Excel tutorials, free support , online Excel training and Excel consultancy services for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Sabrina Ayon

Hi there! This is Sabrina Ayon. I'm really excited to welcome you to my profile. Currently, I'm working in SOFTEKO as a Team Leader. I'm a graduate in BSc in Computer Science and Engineering from United International University. I love working with computers and solving problems. Iâ€™ve always been interested in research and development. Here I post articles related to Microsoft Excel. Hoped this may help you. Thank you.

We will be happy to hear your thoughts

Advanced Excel Exercises with Solutions PDF