How to stop Excel switching to horizontal scroll?

This has been driving me mad for years. I don't know if it's from Excel, Windows, or the mouse itself (Sharkoon Fireglider)... but it only happens in Excel.

If the mouse is moved to the right of the workbook the mouse wheel switches from vertical scroll to horizontal - very easy to accidentally trigger especially with frozen columns.

An overlay appears indicating the partition between vertical and horizontal scrolling, and a wheel icon when the mouse is in 'horizontal territory'.

I only want to scroll vertically!

Please help

horizontal scrolling overlay

1 Answer

A partial possible solution is to limit the scrolable area. To do so, on the Developer tab, click on properties then on SCrollableArea, enter the range. From now on when you try to go beyond the set limit, you will be taken back to area you defined.

enter image description here

However, this only work for a worksheet, and you will have to set it for every single worksheet (which might be inconvenient). Or you can use a macro to set it when you open workbooks.

Edit: From this article also explaining the process above, there is a code of macro to accomplish setting up the scrollable area for a workbook. You need to add a Module and add the following code to it.

Sub SetAllScrollAreas()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets ws.ScrollArea = ws.UsedRange.Address
Next ws
End Sub
Private Sub Workbook_Open() SetAllScrollAreas
End Sub

As an aside note, To stop Showing the horizontal scroll bar:

Open Excel Options (File -> Options), go to Advanced, then "Display options for this workbook". Uncheck "Show horizontal scroll bar".

enter image description here

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like