Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I turn scroll lock off (2007 excel)? No scroll lock key Cameron A Perth Excel Discussion (Misc queries) 1 September 18th 09 05:46 AM
how do I undo the scroll lock, thscroll lock button does not work scroll lock Excel Discussion (Misc queries) 3 July 19th 08 10:17 PM
Scroll Lock ? Rob L Excel Discussion (Misc queries) 1 August 12th 07 08:54 AM
Scroll lock.... Ximena Excel Discussion (Misc queries) 2 February 4th 07 05:26 PM
Scroll Lock jrh Excel Discussion (Misc queries) 0 January 18th 05 03:38 PM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"