You can freeze the scroll area to a specific limit if that is what you are looking forward to ? In order to do that you will need a small code in VBA. Here is the line of code for locking the scrollbar on Sheet1:
Code:
Sheets("Sheet1").ScrollArea = "A1:F100"
Also you can remove the horizontal scrollbar in your Excel worksheet if that is what you want. You can accomplish this just by plonking this line of code in one of the Excel events:
Right click on the worksheet name "Master", select the option "view code". A VB Editor would open. Now, on the right hand side of the window just a little above the white area there are 2 dropdowns, namely, "General" & "Declarations". Now, select "Worksheet" in the General dropdown and than select "Activate" in the Declarations dropdown.
Copy and paste the code below with whatever code you find there in the white area after you perform the above steps:
Code:
Private Sub Worksheet_Activate()
ScrollArea = "A1:P40"
End Sub
Note: Please change the ranges in the code to suit your preferences.
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.