http://www.perlmonks.org?node_id=762096


in reply to Re: OLE and Excel question
in thread OLE and Excel question

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.