or download this
my $excel = Win32::OLE::Strict->new('Excel.Application', 'Quit');
my $workbook = $excel -> Workbooks -> Open("$templfile");
...
$sh -> Range("$srcrange ") -> Select;
my $xlfill = 'xlFillDefault';
$excel -> Selection -> AutoFill({Destination => $targrange, Type => $x
+lfill});