ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   block scrolling (https://www.excelbanter.com/excel-programming/304031-block-scrolling.html)

Claude

block scrolling
 
Hi all
Is is possible to "freeze" an excel sheet in such a way
that the user can only scroll around in a certain
delimited area?
Thanks!

Dave Peterson[_3_]

block scrolling
 
You could have a macro that does some fancy protecting--put it in your auto_open
or workbook_open event:

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi"
.EnableSelection = xlUnlockedCells
.ScrollArea = .Range("c9:d122").Address(external:=True)
End With
End Sub


Excel won't remember these settings after you close it and reopen the workbook
(that's why it's in auto_open).



Claude wrote:

Hi all
Is is possible to "freeze" an excel sheet in such a way
that the user can only scroll around in a certain
delimited area?
Thanks!


--

Dave Peterson



All times are GMT +1. The time now is 08:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com