ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   scroll lock? (https://www.excelbanter.com/excel-programming/371517-scroll-lock.html)

dr chuck

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

Tom Ogilvy

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




Gord Dibben

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.



Tom Ogilvy

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





All times are GMT +1. The time now is 07:36 PM.

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