Skip to main content

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

Author: Kelly Last Modified: 2025-04-17
A screenshot of the Excel worksheet showing the horizontal and vertical scroll bars being hidden

By default, Excel provides a horizontal scroll bar at the bottom and a vertical scroll bar on the right side for navigating through the active worksheet. This guide will show you how to enable or disable these scroll bars in Excel worksheets.

Show or hide Horizontal/Vertical Scroll bar with Excel Options

Show or hide Horizontal/Vertical Scroll bar with VBA code

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


 Show or hide Horizontal/Vertical Scroll bar with Excel Options

To display or hide horizontal and vertical scroll bars in Excel worksheets, you must configure the settings in the "Excel Options" dialog box.

  • Step 1: Click the "File" tab in Excel;
  • 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.


 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.


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

You can easily display or hide Horizontal/Vertical Scroll bar in Excel worksheets with the "View Options" utility of "Kutools for Excel".

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1: Click the "Kutools" > "Show & Hide" > "View Options". See screenshot:

2: In "View Options" dialog box, you need to do as follows:

  • (1) check or unchecked the "Vertical Scrollbar" option and "Horizontal Scrollbar" option according to your needs.
  • (2) If you only want to show or hide the scrollbar in the current worksheet, click the "OK" button. To show or hide the scrollbar in all sheets, click the "Apply to all sheets" button.

    A screenshot of the View Options dialog box

The "View Options" 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.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


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

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!