I would recommend moving all of it into perl. Having the usability/reliability/stability dependant on too many things may cause problems. I have done exactly what you are talking about using Win32::OLE It's not hard. Since it seems you know the VB/Excel macro syntax, you should have less trouble than most in translating this code into perl.
Here is a small example of the syntax translated to perl
Check the Object Browser in the VB Macro Editor, to see the methods and properties available to each object.#!/perl -w use strict; use Win32::OLE; my $path = "C:\\TEST_EXCEL"; my $excel = new Win32::OLE('Excel.Application'); my $workbook = $excel->Workbooks->Open($path."\\Book1.xls"); $workbook->Worksheets->Add(); $workbook->Save(); $excel->Quit();
In reply to Re: Question about Win32::OLE and Excel
by Grygonos
in thread Question about Win32::OLE and Excel
by Streen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |