{"id":12054,"date":"2011-10-11T09:51:17","date_gmt":"2011-10-11T09:51:17","guid":{"rendered":"http:\/\/www.learnexcelmacro.com\/?p=14"},"modified":"2022-08-02T21:44:43","modified_gmt":"2022-08-02T21:44:43","slug":"how-to-disableinvisible-horizontalvertical-scroll-bar","status":"publish","type":"post","link":"https:\/\/vmlogger.com\/excel\/2011\/10\/how-to-disableinvisible-horizontalvertical-scroll-bar\/","title":{"rendered":"How to disable\/Invisible Horizontal\/Vertical Scroll Bar"},"content":{"rendered":"
While developing some Excel VBA based tools in Excel, you might find this useful when you want to disable or enable horizontal or vertical scrolling in excel automatically.
\nIt is very easy to disable the Horizontal or Vertical Scroll bar using the VBA code. They are self-explanatory by the way. So here you go:<\/p>\n
\n<\/a><\/p>\nVBA code to Show Horizontal or Vertical Scroll bar<\/h1>\n
\r\nSub ScrollOn()\r\nWith ActiveWindow\r\n.DisplayHorizontalScrollBar=True\r\n.DisplayVerticalScrollBar=True\r\n.DisplayWorkbookTabs=True\r\nEnd With\r\n<\/code><\/pre>\n