Hello,
Can someone provide the correct to set the following?
1) Freeze pane
2) Set Header
3) Set Footer
Thank you,
Excel Help
-
- Posts: 38
- Joined: Mon Nov 28, 2005 2:10 pm
For freeze panel...using TExcelScript:
Carlos Sincuir
Code: Select all
/*
* TExcelScript():FreezePanel()
*/
METHOD FreezePanel( cRange ) CLASS TExcelScript
::oExcel:Range( cRange ):Select()
::oExcel:Application:ActiveWindow:FreezePanes := .T.
RETURN Self
- Detlef Hoefner
- Posts: 312
- Joined: Sat Oct 08, 2005 9:12 am
- Location: Germany
- Contact:
cdmmaui,
as Carlos pointed out, you have do do a "select" before.
The freeze command works like in real Excel.
First you have to select a cell and then you can freeze the sheet.
This sample works for me:
Regards,
Detlef
as Carlos pointed out, you have do do a "select" before.
The freeze command works like in real Excel.
First you have to select a cell and then you can freeze the sheet.
This sample works for me:
Code: Select all
oWin := oExcel:Get( "ActiveWindow" )
oSheet:Cells( 2, 1 ):Select()
oWin:Set( "FreezePanes", .t. )
Detlef