How to show or hide Horizontal & Vertical scroll bar in Microsoft Excel?

We can scroll through the active worksheet with horizontal scroll bar at the bottom and vertical scroll bar at the right side by default. Here we will show you some tips to turn on or off the scroll bars in the Microsoft Excel worksheets.

Show or hide Horizontal/Vertical Scroll bar with Excel Options

Show or hide Horizontal/Vertical Scroll bar with VBA code

Show or hide Horizontal/Vertical Scroll bar with Kutools for Excel

Recommended Productivity Software

Office Tab: Use tabbed interface in Office as the use of web browser Chrome, Firefox and Internet Explorer.
Kutools for Excel: Adds 120 powerful new features to Excel. Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Brings back your familiar menus to Office 2007, 2010 and 2013 (includes Office 365).
Display the Horizontal/Vertical Scroll bar
Hide the Horizontal/Vertical Scroll bar

arrow blue right bubble Show or hide Horizontal/Vertical Scroll bar with Excel Options

Hint


You have to configure Excel 2007/2010/2013's settings in Excel Options dialog box, if want to display or hide Horizontal/Vertical Scroll bar in Excel worksheets.

  • Step 1: Click the Filetab in Excel 2010/2013, or click the doc-office-2007-button button in Excel 2007;
  • Step 2: Click the Options button;
  • Step 3: In the Excel Options dialog box, go to the Advanced category;
  • Step 4: Scroll down to the Display options for this workbook section;
  • Step 5: Checked or unchecked the Show Horizontal Scroll bar option and Show Vertical Scroll bar option according to your needs. See screenshot:
  • Step 6: Click OK. And you will get the result that you want. If you check them, the horizontal/vertical scroll bar will display, if you uncheck them, the horizontal/vertical scroll bar will hide.


arrow blue right bubble Show or hide Horizontal/Vertical Scroll bar with VBA code

The following VBA code also can help you show or hide the horizontal/vertical scroll bar. Please do as this:

Step 1: Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

Step 2: Click Insert > Module, and paste the following macro in the Module Window:

VBA code to hide the horizontal and vertical scroll bar:

Option Explicit
Private Sub Workbook_Activate()
    With ActiveWindow
        .DisplayHorizontalScrollBar = False
        .DisplayVerticalScrollBar = False
    End With
End Sub

VBA code to show the horizontal and vertical scroll bar:

Private Sub Workbook_Deactivate()
    With ActiveWindow
        .DisplayHorizontalScrollBar = True
        .DisplayVerticalScrollBar = True
    End With
End Sub


Step 3: Press the F5 key to run this code. And the horizontal and vertical scroll bar will be hidden or shown.


arrow blue right bubble Show or hide Horizontal/Vertical Scroll bar with Kutools for Excel

If you have Kutools for Excelinstalled, you can easily display or hide Horizontal/Vertical Scroll bar in Excel worksheets with its View Options tool.

Kutools for Excel includes more than 120 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

Step 1: Click the Kutools > Show / Hide > View Options. See screenshot:

Step 2: In View Options dialog box, check or unchecked the Vertical Scrollbar option and Horizontal Scrollbar option according to your needs. See screenshot:

The View Options of Kutools for Excel makes it possible to show or hide most of Microsoft Excel settings quickly, such as Inner Tabs, Formula Bar, Status Bar, Windows in Taskbar, Gridlines, Page Breaks, Display Zeros, Vertical Scroll bar, Horizontal Scroll bar, Sheet Tab, … etc. It will save your time in looking for these setting when you need to show or hide them. Click to know more…


Related articles:


Is your problem solved?

Recommended Productivity Tools

The following tools will greatly save your time and effort, which one do you prefer?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: 120 powerful new functions for Excel, Increase your productivity in 5 minutes. Save two hours every day!
Classic Menu for Office: Bring back familiar menus to Office 2007, 2010, 2013 and 365, as if it were Office 2000 and 2003.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 More than 120 powerful advanced functions which designed for Excel:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more     btn download     btn purchase