Excelの「ウインドウ枠の固定」をする方法

excelシートの1行目に「ウインドウ枠の固定」を行いたいです。
どのようにするのが一般的な手段でしょうか。
アクティビティがあるでしょうか。
「ホットキー押下」アクティビティで「Alt+wfr」を考えていたのですが
セレクタはどこにすればよいか気になりました。

ご指導よろしくお願いします。

@196006

There are no activities

best is to use invoke vba and run macro

Sub FreezeFirstRow()
    ' Unfreeze any existing panes first, if necessary
    If ActiveWindow.FreezePanes Then
        ActiveWindow.FreezePanes = False
    End If

    ' Set the split point just below the first row
    ActiveWindow.SplitRow = 1

    ' Apply the freeze panes
    ActiveWindow.FreezePanes = True
End Sub

this is a LLM Generated code but should be working .

cheers