Page 1 of 1

freeze rows in excel RESOLVED

Posted: Wed Dec 15, 2021 4:38 am
by artu01
Guys:
How can i do that?

Thanks

Re: freeze rows in excel

Posted: Wed Dec 15, 2021 5:21 am
by Jimmy
I have to look into my crystal ball ...
but I don't see a solution with so little information. :(

Re: freeze rows in excel

Posted: Wed Dec 15, 2021 5:56 am
by artu01
Jimmy wrote:I have to look into my crystal ball ...
but I don't see a solution with so little information. :(

:P


I want to freeze rows in Excel
For example, the first two lines of My Excel sheet are frozen

Re: freeze rows in excel

Posted: Wed Dec 15, 2021 9:30 am
by hmpaquito
From recorded macro

Code: Select all | Expand

Sub Macro1()
'
'
Macro1 Macro
'

'

    With ActiveWindow
        .SplitColumn = 0
        .SplitRow = 1
    End With
    ActiveWindow.FreezePanes = True
End Sub

freeze rows in excel RESOLVED

Posted: Thu Dec 16, 2021 1:40 am
by artu01
I solved this way

Code: Select all | Expand


oWin := oExcel:ActiveWindow
oSheet:Cells( 2, 1 ):Select()
oWin:FreezePanes := .t.