Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Navigating on a worksheet

Hi,
I have a work sheet which I hope to us in my office.
All the necessary information is on the screen when the user opens the sheet.
Can I prevent the user from panning to the right, I know you can switch off
the scroll bars but this doesnt stop the user from panning to the right.
Similarly can I prevent the user from scrolling past a certain cell, say
cell 150.
Regards,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,327
Default Navigating on a worksheet

You can do this by running a very simple macro:

Sub RestrictTheWorkers()
Sheets(1).ScrollArea = "A1:M150"
End Sub

HTH. Best wishes Harald

"Bill" skrev i melding
...
Hi,
I have a work sheet which I hope to us in my office.
All the necessary information is on the screen when the user opens the
sheet.
Can I prevent the user from panning to the right, I know you can switch
off
the scroll bars but this doesnt stop the user from panning to the right.
Similarly can I prevent the user from scrolling past a certain cell, say
cell 150.
Regards,



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Navigating on a worksheet

See Harald's reply about the scrollarea for a manually-run macro.

Or to automatically run..........................

Since the scrollarea method does not stick between sessions you will have to
reset it each time you open the workbook.

You will place the code into a WorkBook_Open Sub in ThisWorkbook module
and specify which worksheet if only one sheet required.

Adjust the sheetname and range to suit.

Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:M150"
End Sub

Or again in the Thisworkbook module to limit scrollarea on all sheets.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "A1:M150"
End With
End Sub


Gord Dibben MS Excel MVP

On Tue, 8 Jul 2008 12:36:02 -0700, Bill wrote:

Hi,
I have a work sheet which I hope to us in my office.
All the necessary information is on the screen when the user opens the sheet.
Can I prevent the user from panning to the right, I know you can switch off
the scroll bars but this doesnt stop the user from panning to the right.
Similarly can I prevent the user from scrolling past a certain cell, say
cell 150.
Regards,


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
Navigating ~ One Fine Old Dude Excel Worksheet Functions 0 June 6th 07 06:38 PM
Navigating ~ One Fine Old Dude Excel Worksheet Functions 0 June 6th 07 06:35 PM
navigating with the tab key Cynthia[_2_] New Users to Excel 1 April 17th 07 05:18 PM
CTRL Find is preventing me from navigating around my worksheet gillywilly55 Excel Discussion (Misc queries) 1 April 3rd 06 12:36 PM
Navigating within worksheet Simon Excel Discussion (Misc queries) 4 April 19th 05 04:30 PM


All times are GMT +1. The time now is 04:05 PM.

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

About Us

"It's about Microsoft Excel"