asked on
ASKER
Sub SetFreezePane ()
Dim c As Range: Set c = Sheet1.Cells.Find("total").Offset(1, 0)
If Not c Is Nothing Then ActiveWindow.FreezePanes = False: ActiveWindow.FreezePanes = True
End Sub
Sub SetFreezePane()
Dim c As Range
Set c = Worksheets("FA").Cells.Find("total").Offset(1, 0)
If Not c Is Nothing Then
Dim s As Worksheet
Set s = ActiveSheet
Application.Goto c
ActiveWindow.FreezePanes = False
ActiveWindow.FreezePanes = True
s.Activate
End If
End Sub
ASKER
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
Worksheets("FA").Activate
Range("B2:F4").Select
ActiveWindow.FreezePanes = True