Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TT TT is offline
external usenet poster
 
Posts: 32
Default Scroll Lock in Protected Excel Worksheet

I want to stop users being able to scroll through mouse in protected sheets.
Can someone please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Scroll Lock in Protected Excel Worksheet

Might just be easiest to hide the extra rows and columns then protect the
worksheet.

But via VBA if you want to go that route.......................

You can set the ScrollArea so users cannot move out of that area.

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:M35"
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:M35"
End With
End Sub

To unset this area................

Sub Scroll_All()
Sheets("YourSheet").ScrollArea = ""
End Sub


Gord Dibben MS Excel MVP

On Fri, 27 Jul 2007 07:40:04 -0700, TT wrote:

I want to stop users being able to scroll through mouse in protected sheets.
Can someone please help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Scroll Lock in Protected Excel Worksheet

Hey I am new to this. I can get a reply box but I can't a new question box?
somebody help!
--
I love technology!


"TT" wrote:

I want to stop users being able to scroll through mouse in protected sheets.
Can someone please help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Scroll Lock in Protected Excel Worksheet

CTRL+Click the button?

Tman wrote:

Hey I am new to this. I can get a reply box but I can't a new question box?
somebody help!


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
Scroll lock.... Ximena Excel Discussion (Misc queries) 2 February 4th 07 05:26 PM
Allow use of a control scroll bar in protected worksheet Marco Excel Discussion (Misc queries) 2 October 19th 05 09:02 AM
Excel acts as if scroll lock is on when it is not Hyehats Excel Discussion (Misc queries) 4 October 18th 05 01:33 PM
Enough with Scroll Lock in Excel 2003 Brett Setting up and Configuration of Excel 2 May 4th 05 11:42 PM
scroll lock PCOR Excel Discussion (Misc queries) 6 December 5th 04 08:08 PM


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

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"