+ Reply to Thread
Results 1 to 4 of 4

How to lock the scroll bar

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    cheenai
    MS-Off Ver
    Excel 2007
    Posts
    68

    How to lock the scroll bar

    Hi all i am new to excel.

    I have to display only a to f. More than i have to lock.

    i have used the code

    ScrollArea="a40:e40"

    its works fine. I have saved.When i close the Excel and reload it is not working. the cell is not locked.

    How can i lock the cell.

    thanks in advance

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to lock the scroll bar

    Where have you placed the Code? I would put it in the workbool open event, but it needs to reference the sheet
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    cheenai
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: How to lock the scroll bar

    Hi

    I have used Work book open method. But it is not working.

    could any one help me how can i lock the scroll bar.

    Thanks and regards

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: How to lock the scroll bar

    You can set it in the worksheet properties as well.
    When you are in the VBA Editor, Select the Sheet in the VBA project. in the sheets properties window, there is a place to set the scroll area.

+ 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