Đây... Code dùng thuộc tính ScrollArea đây! Bạn mở VBE, paste code này vào sheet nào đó bạn muôn cố định:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim LastColumn As Integer
Dim LastRow As Long
If WorksheetFunction.CountA(Cells) > 0 Then
LastRow = Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious).Row
If LastRow <> 65536 Then LastRow = LastRow + 1
LastColumn = Cells.Find(What:="*", After:=[A1], _
SearchOrder:=xlByColumns, _
SearchDirection:=xlPrevious).Column
If LastColumn <> 256 Then LastColumn = LastColumn + 1
Me.ScrollArea = Range(Cells(1, 1), Cells(LastRow, LastColumn)).Address
Else
Me.ScrollArea = ""
End If
End Sub
ANH TUẤN