+ Reply to Thread
Results 1 to 4 of 4

lock scroll area

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    60

    lock scroll area

    Hi guys

    I want to lock a certain area to prevent user from scrolling to far down.
    I tried to use ScrollArea field, but the values disappear when re-opening the file... Any ideas?

    kind regards

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: lock scroll area

    On way:
    Try in attached workbook

    Prevents user selecting any cells below row 40 - place in SHEET module:
    Please Login or Register  to view this content.
    VBA looks at last row in selection and action is triggered if that row is greater than 40
    Attached Files Attached Files
    Last edited by kev_; 11-01-2017 at 03:27 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: lock scroll area

    Here is another way
    Try in attached workbook - user is permitted access to A1:T40 only
    Password is NOT required to unprotect the sheet

    This uses sheet protection
    - unlock user-allowed cells with cell formatting
    - protect sheet and prevent user selecting locked cells

    UnLock Cells.jpg

    Protection.jpg
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: lock scroll area

    Thanks for the rep
    If you have your solution, please go to Thread Tools at top of thread and mark thread as SOLVED

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 12-18-2017, 09:29 PM
  2. Scroll area using VBA
    By nathan3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2017, 05:14 PM
  3. How to lock the scroll bar
    By karthisucc9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2012, 08:56 AM
  4. Restrict Scroll Area to Visible Area
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2008, 09:28 AM
  5. Scroll Lock
    By kteig in forum Excel General
    Replies: 4
    Last Post: 07-18-2008, 02:19 PM
  6. scroll lock
    By Benjamin in forum Excel General
    Replies: 3
    Last Post: 11-01-2005, 11:05 AM
  7. Scroll Lock
    By jrh in forum Excel General
    Replies: 0
    Last Post: 01-18-2005, 12:06 PM

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