Consulting

Results 1 to 6 of 6

Thread: Hide Horizontal Scrollbar

  1. #1

    Hide Horizontal Scrollbar

    Hello

    I am creating a dashboard in Excel for multi user access and would like to know if there's a way of hiding the horizontal toolbar without using the Tools> Options function which only applies the settings on an individual's PC as opposed to hiding the scrollbar within that workbook.

    Many thanks

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Try the following

    [vba]
    Private Sub HideHoriScrollBar()
    With ActiveWindow
    .DisplayHorizontalScrollBar = False
    End With
    End Sub
    [/vba]
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3

    Hide Horizontal Scrollbar

    Thanks for the response. Unfortunately, the code provided didn't work and generated the following error:

    Run-time error '438':

    Object doesn't support his property or method

    Not sure if it's because I'm using Excel 2003.

    Any other help/suggestions gratefully received.

  4. #4
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings Joy,

    There is just an errant space in .DisplayHorizontalScrollBar

    In regards to your question - I do not believe you can rid the scrollbar(s) at the PC per se, or even with a given workbook, as the scrollbars are part of the window object. Thus, let's say you have a workbook open, and hide the scrollbar. If you add a new window, the scrollbar will exists in second window.

    Mark

  5. #5
    Super, thank you.

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Sorry about that..... typoitis
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •