Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

stop scrolling

ResolvedVersion 2007

Elvin has attended:
Excel VBA Intro Intermediate course

Stop Scrolling

Hi

I need to prevent users from scrolling in each worksheet of the workbook. I have tried teh followign but it does not work. Are you able to hep ?

Private Sub Worksheet_Activate()
Worksheets(1).ScrollArea = "a1:m34"
End Sub


Thanks



Elvin

RE: Stop Scrolling

Hi Elvin

Your example does work but you have to activate Sheet1 first. Try clicking into Sheet2 then back into Sheet1.

Another place to add the code to is ThisWorkbook
(Double click ThisWorkbook, change from General to Workbook, Open)

Private Sub Workbook_Open()
Worksheets(1).ScrollArea = "a1:m34"
End Sub

Remember to save as a macro enabled workbook when finished or a 97-2003 format.

hope that helps

Cheers
Doug
Best STL

Mon 6 Feb 2012: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Apply currency format quickly in Excel

To quickly apply the currency format to cell in your spreadsheet, select (highlight) the cells you wish to apply currency format to, then use Ctrl + Shift + $

This will apply a pounds symbol even though the $ key is pressed.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.