From this post, I have edited in order to freeze on a specific Sheet and it is not an active Sheet.
Dim oDoc As Object
oDoc = ThisComponent
oDoc.CurrentController.FreezeAtPosition(0,6)
It freezed on the active Sheet.
Can you please help me freeze on a specific Sheet which is not an active Sheet ?