my $Excel = Win32::OLE->new('Excel.Application') or die "Could not start excel"; $Excel->{'Visible'} = 0; $Excel->{DisplayAlerts} = 0; my $Book = $Excel->Workbooks->Open ( $excel_template ) or die "Could not open excel template $excel_template"; # open Excel file my $Sheet = $Book->Worksheets(1) or die "Could not get Worksheet in $excel_template"; $Sheet->Cells( 9 , 7 )->{Value} = "$name";