+ Reply to Thread
Results 1 to 7 of 7

How to disable the scrolling in worksheet

  1. #1
    Registered User
    Join Date
    09-01-2005
    Posts
    10

    How to disable the scrolling in worksheet

    Dear all,

    How can I disable the scrolling function in a Excel Worksheet. Also I want to disable the "Close Window" button. Any tips? Thanks.

    Best regards,

    David Yang

  2. #2
    Valued Forum Contributor
    Join Date
    06-30-2005
    Location
    Verwood, Dorset, England
    MS-Off Ver
    Excel 2000
    Posts
    479
    Quote Originally Posted by yangyh
    Dear all,

    How can I disable the scrolling function in a Excel Worksheet. Also I want to disable the "Close Window" button. Any tips? Thanks.

    Best regards,

    David Yang
    Hi David

    To get rid of scrolling try Tools > Options > View Tab, uncheck the Horizontal and Vertical Scroll Bars in Window options

    Sorry can't help with Close Window button
    Paul

  3. #3

    Re: How to disable the scrolling in worksheet

    David,

    You can hide scrollbars by

    Application.DisplayScrollBars = False

    Not sure about the Close Window button.

    HTH,
    John


  4. #4
    Registered User
    Join Date
    09-01-2005
    Posts
    10

    To disable the scrolling function

    Thank you guys. But actually I want to disable the scorlling function. Not only just
    hide the scrol bar. What shall I do? Thanks.

    David

  5. #5
    Peter T
    Guest

    Re: How to disable the scrolling in worksheet

    If you mean you want to restrict user to selecting and/or scrolling to
    within a specific area, set the ScrollArea to suit, eg B2:K20

    Rt-click the sheet tab, view code and you should see the ScrollArea setting
    in the Properties panel, typically bottom left of the VBE. Though you might
    need first to select the sheetname in the top left panel and press F4.

    Regards,
    Peter T

    "yangyh" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thank you guys. But actually I want to disable the scorlling function.
    > Not only just
    > hide the scrol bar. What shall I do? Thanks.
    >
    > David
    >
    >
    > --
    > yangyh
    > ------------------------------------------------------------------------
    > yangyh's Profile:

    http://www.excelforum.com/member.php...o&userid=26883
    > View this thread: http://www.excelforum.com/showthread...hreadid=401139
    >




  6. #6
    Registered User
    Join Date
    09-01-2005
    Posts
    10

    Any function

    Peter,

    It works perfectly. But I'm wondering is there any function to realize it. Thank.

    David

  7. #7
    Peter T
    Guest

    Re: How to disable the scrolling in worksheet

    > It works perfectly. But I'm wondering is there any function to realize
    > it. Thank.


    To set a scroll area

    Worksheets("Sheet1").ScrollArea = "B2:K20"

    and reset

    Worksheets("Sheet1").ScrollArea = ""

    Regards,
    Peter T



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1