My general approach is (very) slightly different:
# The number of rows above the split: $Excel->ActiveWindow->{SplitRow} = 1; $Excel->ActiveWindow->{FreezePanes} = 1;
No selection or intermediate variable necessary ($freeze_panes -- used somewhere else in the code?).
In regards to the second question, are you (by "you" I mean gibsonca) calling $Excel->Quit() when you're done with Excel? Also note that I've found that if my script terminates early, the application isn't always killed properly.
In reply to Re^2: OLE and Excel question
by Nkuvu
in thread OLE and Excel question
by gibsonca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |