Home » excel » How do I disable Excel 2016 auto horizontal scrolling?

How do I disable Excel 2016 auto horizontal scrolling?

Posted by: admin April 23, 2020 Leave a comment

Questions:

When I expand a column that contains a lot of text and is very wide (more than the screen’s width), Excel automatically horizontally scrolls so that the edge of the column is at the edge of the window.

That way it is impossible for me to reduce the width of that column because I cannot click and drag its edge! Is there a way to fix that annoyance? They thought this would be a feature, but I consider it an annoyance if it is not a bug.

How to&Answers:

I don’t have Excel 2016, but here is how to reduce the column width to fit on the screen in older versions:

  1. Right click on the column header (above the top row of editable cells).
  2. Click Column Width
  3. In the box that pops up, enter a number (try 150 to start with)

Obviously, you can repeat this with different numbers to get the column size that suits you.

Answer:

You can usually still manage to get the edge right edge of the column if you keep clicking the right arrow of the horizontal scroll bar, it should automatically expand the selection. Sometimes this can be a bit of bother though, here is some info from Microsoft about scroll lock in Excel. To turn it off in Excel, see the Troubleshooting Scroll Lock, right click on the bottom bar (Excel status bar) and untick scroll lock. This will stop auto scrolling, and of course you can always turn it back on after!

Answer:

If you can use VBA, you could use this code in the worksheet module:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If (ActiveSheet.Columns(Target.Column).ColumnWidth > 150) Then
        ActiveSheet.Columns(Target.Column).ColumnWidth = 150
        ActiveWindow.ScrollColumn = 1
    End If
End Sub