in reply to OLE and Excel question
Sometimes it really helps to run the Excel macros and see what that gives you
This (translated to perl) works for meRange("B2").Select ActiveWindow.FreezePanes = True
I changed ActiveSheet to ActiveWindowmy $freeze_panes = $gExcel->ActiveSheet->Range("B2")->Select; #$gSheet->Cells(2,2)->Select(); $gExcel->ActiveWindow->{FreezePanes} = 1;
and set the selection to a single cell (instead of a row). If set to a row (2:2) it still works by freezing only the top row.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OLE and Excel question
by Nkuvu (Priest) on May 05, 2009 at 21:48 UTC | |
|
Re^2: OLE and Excel question
by gibsonca (Beadle) on May 06, 2009 at 21:55 UTC |