scroll area

spiderman

New Member
Joined
Apr 25, 2002
Messages
2
can i limit the scoll area on a page? (ie i want to have a data table that people can't get to on the same page)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Just hide the rows or columns where the data table is located. If you then protect the Workbook with a password, users will not be able to view the the data table.
 
Upvote 0
On 2002-04-26 09:38, spiderman wrote:
can i limit the scoll area on a page? (ie i want to have a data table that people can't get to on the same page)

If your using XL97 this won't work.

If you right-click on the worksheet tab and select view code, in the properties of the Visual Basic Editor for that sheet there is a blank field called Scroll Area.

I say it does work for XL97 because you can select a area and I'll seem fine but save and close, the next time It'll be back to normal.

Having said that I just tried using

Private Sub Workbook_Open()

Sheet1.ScrollArea = "A1:M10"

End Sub

and that'll do it for you. change the range to suit.
 
Upvote 0
Spiderman

You could use the ScrollArea property of the worksheet. If you put this in, say the Activate event for the worksheet, it will limit the area to which the user can scroll.

Try this in Sheet1:
- Right click the sheet tab
- Code page appears
- Cut and paste this into the code page

Private Sub Worksheet_Activate()
Worksheets("Sheet1").ScrollArea = "A1:P40"
End Sub

- Return to the worksheets
- Select another worksheets then select sheet1

You should now not be able to scroll outside the given area.

Any help?

Regards

Robb__
 
Upvote 0
On 2002-04-26 10:54, spiderman wrote:
Thanks guys. works great.

A word of caution... just because you can't scroll to something doesn't mean "[you] can't get to [it]".
 
Upvote 0
I tried this with my sheet named Information Systems, and it works great...until I close the file and reopen it, at which point I can scroll where ever I want to
 
Upvote 0
On 2002-04-26 14:17, excelmacro wrote:
I tried this with my sheet named Information Systems, and it works great...until I close the file and reopen it, at which point I can scroll where ever I want to

The scrollArea is one of those settings
that do not remain once the workbook is closed......you will have to use Robs_ code
to reset it.
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top