

The Best Office Productivity Tools Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

If you have Kutools for Excel, with its Set Scroll Area utility, you can quickly lock and hide other direction beyond the selected range with only one click. VBA code: Cancel the lock of worksheet screen Private Sub Workbook_Open() To cancel the lock of the worksheet screen, please apply following code: In the above code, Sheet1 is the worksheet and A1:M100 is the cells range that you want to only be used, you can change them to your need.Ģ. Then press F5 key to run this code, and your scroll area of the specified sheet and range has been set successfully.ġ. VBA code: Lock worksheet screen to prevent scrolling Private Sub Workbook_Open()ģ.
#Ms excel for mac lock view code
Click Insert > Module, and paste the following code in the Module Window. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ. Here also is a simple code for you to solve this job, please do as follows:ġ.
#Ms excel for mac lock view how to
Tips: If the Developer tab is not displayed in your ribbon, you can view this How to show/display developer tab in Excel 2007/2010/2013 Ribbon? article to show it. This setting will be invalid when you open the workbook next time.

If you want to clear the scroll area lock, you just need to delete the range address from the ScrollArea Properties box in above step 2.ģ. The cell address you enter must be a contiguous range.Ģ. Then close the Properties box, and now, you will be restricted to click or scroll to the cells beyond the range you are specified in the Properties dialog.ġ. Then click Developer > Properties, in the Properties dialog box, enter the range address ( A1:M100) you need into the ScrollArea text box, see screenshot:ģ. Go to the worksheet that you want to lock the screen area.Ģ. Lock worksheet screen to prevent scrolling with Kutools for Excel by one clickĪctually, you can go to the Properties box to set the ScrollArea to your needed range address. Lock worksheet screen to prevent scrolling with VBA code Lock worksheet screen to prevent scrolling with setting the properties manually In Excel, how could you finish this job quickly and easily? Normally, you can scroll the scroll bar to any direction of the worksheet, but, sometimes, you need to block scrolling and keep the worksheet screen up to a certain area-A1:M100, for instance. How to lock screen to prevent scrolling in Excel worksheet?
