in reply to How do I change the activesheet of an already-open excel spreadsheet using perl?
my $excel = Win32::OLE->GetActiveObject('Excel.Application')||die "cou +ldnt get active one"; $excel -> Windows("SummarySheet.xls") -> Activate; my $workbook = $excel -> Workbooks("EtfSummarySheet.xls"); $workbook->Activate; my $sheet = $workbook -> Sheets(2); $sheet -> Cells(1,1) -> {Value} = "This works great now.";
|
|---|