Forum Discussion

TonyCzar's avatar
TonyCzar
Copper Contributor
Mar 23, 2026

I want to completely stop entire spreadsheet from horizontal scrolling

I've asked multiple Chatbots for help, but none of them worked for me. If you have a solution, please give to me as micro instructions.

Would really appreciate advice, because I'm getting seasick. Obi-wan, you are my last hope.

1 Reply

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    1. Hide or display scroll bars in a workbook

    Note: hiding the scroll bar does not disable scrolling. It only removes the visual bar from the interface. Users can still scroll horizontally using a mouse wheel, touchpad, or keyboard arrows.

     

    Other options are…

     

    2. Hide Unused Columns (Most Common)

    1. Select the first unused column after your data (e.g., if your data ends in column G, select column H)
    2. Press Ctrl + Shift + Right Arrow to select all remaining columns
    3. Right-click and select Hide

    This prevents users from scrolling into hidden columns.

     

    3. Freeze Panes to Lock Left Portion

    1. Select the first column you want to remain visible when scrolling
    2. Go to View → Freeze Panes → Freeze First Column

    This doesn't stop scrolling but keeps important columns visible.

     

    4. Protect Sheet with Scroll Area Restriction

    1. Select the range you want users to access (e.g., A1:G100)
    2. Go to Review → Protect Sheet
    3. In the dialog, find Scroll Area and enter your range (e.g., A1:G100)
    4. Set a password if desired and click OK

    This completely restricts scrolling to your specified area.

     

    5. VBA Solution (Most Restrictive)

    For complete control, use this VBA code:

    Private Sub Worksheet_Activate()
        Me.ScrollArea = "A1:G100"  ' Change to your range
    End Sub

    To implement:

    • Press Alt + F11 to open VBA editor
    • Double-click your worksheet
    • Paste the code
    • Adjust the range as needed

    To remove restriction later: Run this in Immediate Window (Ctrl + G):

    ActiveSheet.ScrollArea = ""

    My Recommendation: If you want to completely prevent horizontal scrolling without protecting the sheet, Second Method (hide unused columns) is the simplest and most effective approach.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

     

    Was the answer useful? Mark as best response and like it!

    This will help all forum participants.