Creating a scroll area in excel

apar93

New Member
Joined
Nov 8, 2017
Messages
33
Can anyone help me create a scroll area in excel 2011?
I've been reading the steps,

  • From the Developer tab, in the Control group click Properties
  • Locate Scroll Area and enter the range you want to limit the worksheet to. Such as A1:Q30
However, in excel 2011 I do not see such button "Properties" in the developer tab.

Help!!
 
"doesn't seem to work" is not a helpful description of what happens when you deselect then re-select the tab where you have installed the event code I posted in post #9 . Have you removed the earlier code from that sheet and followed the instructions I posted in post #7 for installing the code from post #9 ? If yes, can you explain exactly what doesn't work means? Since the code is for a worksheet activate event, it will not fire and take effect immediately after you install it. You must first deselect the worksheet then select it again. If it is the only worksheet in your workbook, then tell me that and I will modify the code to fire when you open the workbook.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I have followed the directions you gave in #7 and pasted the code from #9 as instructed. I saved as a macro enabled sheet. When I reopen the sheet I can continue scrolling past the range you set in the code. I do notice that I cannot click on cells outside the range specified in the code, although this is not what I am trying to accomplish. I have 3 sheets and only one sheet "Sheet1" needs the code applied. What do you mean I must first deselect the worksheet and then select it again?
 
Upvote 0
Might be easier to create a workbook_open event module than to use the sheet activate event. Do the following:

First remove the existing activate event code from sheet1. Then follow the instructions below to install the open event code below the instructions.

To install ThisWorkbook code:
1. With your workbook active press Alt and F11 keys. This will open the VBE window.
2. In the project tree on the left of the VBE window, find your project and double-click the 'Thisworkbook' icon.
3. Copy the code below from your browser window and paste it into the white space in the VBE window.
4. Close the VBE window and Save the workbook. If you are using Excel 2007 or a later version do a SaveAs and save it as a macro-enabled workbook (.xlsm file extension).
5. Make sure you have enabled macros whenever you open the file or the code will not run.
Code:
Private Sub Workbook_Open()
Application.ScreenUpdating = False
Sheet1.ScrollArea = Sheet1.Range("A1:Q30").Address
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Thank you for this, this worked. I cannot scroll past the range. However, it locks all cells outside of that range, therefore I cannot copy and paste a row or column...
 
Upvote 0
Thank you for this, this worked. I cannot scroll past the range. However, it locks all cells outside of that range, therefore I cannot copy and paste a row or column...
That's the way scroll lock works. The only way to do anything outside the locked range is via VBA.
 
Upvote 0
Meaning if I wanted to use the code to lock the range, I would need another code in order to copy and paste cells.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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