+ Reply to Thread
Results 1 to 4 of 4

Limit scroll area to a union

Hybrid View

  1. #1
    Registered User
    Join Date
    12-29-2010
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    20

    Limit scroll area to a union

    Hi,

    I know how to limit the scrolling area for one range...

    Worksheets(1).ScrollArea = "A1:L50"
    Is it possible to limit the scrolling area to multiple ranges such as a union?

    Something like this, that works...
    Worksheets(1).ScrollArea = "A1:B50; D10:E40"

    Thanks

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Limit scroll area to a union

    How would that act?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Limit scroll area to a union

    Hi,

    As far as I'm aware you can only limit the scroll area to a contiguous range.

    One work around might be to Unlock all the A1:B50 & D10:E40 cells and lock all the rest in the A1:E40 range. Then switch on sheet protection and untick the 'select locked cells.

    Now specify the .ScrollArea as "A1:E40" in your code.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Limit scroll area to a union

    Most Scroll areas are for one particular area.
    If you have more than one area you want to allow editing, it maybe best to just unlock those cells and the protect the sheet, then only the unlocked cells can be edited.

    or what Richard said....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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