Selected Answer
Hello Essaj2000 and welcome to the forum.
If you want to limt scrolling to only the used area of the worksheet then place the following in the worksheet code window. This code assumes your data starts in "A1".
Private Sub Worksheet_Activate()
Dim LastRow As Long
' change A & M to the first and last columns of your table/data set
LastRow = Range("A:M").Find("*", searchorder:=xlByRows, searchdirection:=xlPrevious).Row
' set scroll area to only the used area
ScrollArea = "A1:M" & LastRow
' or set scroll area to the used area plus an extra 2 columns and rows
ScrollArea = "A1:O" & LastRow + 2
End Sub
To do this, open the vb editor window (Alt + F11); then in the project window click on the worksheet where you want this code; right click and select "View Code".Then copy and paste this code into the window that opens. Now each time that sheet is selected (activated) the scroll area will be set to the used area.
Note: adding data will be restricted to the rows/columns set by the scroll area.
Cheers :-)