Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
scroll lock?
I would like to be able to lock a worksheet so that other users cannot scroll
down the work sheet. How can i accomplish this. For example i want the sheet to open to rows 1-30 and be unable to display row 31 and higher to other users. -- dr chuck |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
scroll lock?
hide the rows you don't want to see.
or use the scrollarea property of the worksheet, but it has to be see by code each time the workbook is opened. -- Regards, Tom Ogilvy "dr chuck" wrote in message ... I would like to be able to lock a worksheet so that other users cannot scroll down the work sheet. How can i accomplish this. For example i want the sheet to open to rows 1-30 and be unable to display row 31 and higher to other users. -- dr chuck |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
scroll lock?
Since the scrollarea method does not stick between sessions you will have to
reset it each time. You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook module and specify which worksheet if only one sheet required. Private Sub WorkBook_Open() Sheets("YourSheet").ScrollArea = "A1:T30" End Sub Or also in the Thisworkbook module to limit scrollarea on all sheets. Private Sub Workbook_SheetActivate(ByVal Sh As Object) With ActiveSheet .ScrollArea = "A1:T30" End With End Sub Gord Dibben MS Excel MVP On Sat, 26 Aug 2006 14:35:01 -0700, dr chuck wrote: I would like to be able to lock a worksheet so that other users cannot scroll down the work sheet. How can i accomplish this. For example i want the sheet to open to rows 1-30 and be unable to display row 31 and higher to other users. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
scroll lock?
Just to add to Gordon's excellent example, if the user disables macros, then
scrollArea may not be the way to go. Also to add to the hidden rows approach, you may want to protect the sheet with a password as well. -- Regards, Tom Ogilvy "dr chuck" wrote in message ... I would like to be able to lock a worksheet so that other users cannot scroll down the work sheet. How can i accomplish this. For example i want the sheet to open to rows 1-30 and be unable to display row 31 and higher to other users. -- dr chuck |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I turn scroll lock off (2007 excel)? No scroll lock key | Excel Discussion (Misc queries) | |||
how do I undo the scroll lock, thscroll lock button does not work | Excel Discussion (Misc queries) | |||
Scroll Lock ? | Excel Discussion (Misc queries) | |||
Scroll lock.... | Excel Discussion (Misc queries) | |||
Scroll Lock | Excel Discussion (Misc queries) |