I am using this script for horizontal scrolling using shift + mousewheel for excel:
#IfWinActive, ahk_class XLMAIN
+WheelDown::ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,3,0)
+WheelUp::ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,0,3)
It works great for tables but when I hold shift and scroll on graph sheets, I get this error:
Error 0x800A03EC -
Source: Microsoft Excel
Description: Unable to get the SmallScroll proprety of the Window class
HelpFile: xlmain11.chm
HelpContext: 0
Specifically: SmallScroll
Line#
002: Return
---> 002:
ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,3,0)
002: Return
003:
ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,3,0)
003: Return
004: Exit
004: Exit
004: Exit
Is there any way to fix this or will I forever be dragging the scroll bar because Excel's ux sucks?
I am using Excel 2016 on Windows 10.