in reply to Question about Win32::OLE and Excel
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();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question about Win32::OLE and Excel
by Streen (Sexton) on Apr 20, 2004 at 11:57 UTC | |
by Grygonos (Chaplain) on Apr 20, 2004 at 17:43 UTC | |
by bmann (Priest) on Apr 20, 2004 at 18:30 UTC | |
|
Re: Re: Question about Win32::OLE and Excel
by Streen (Sexton) on Apr 20, 2004 at 13:53 UTC | |
by Grygonos (Chaplain) on Apr 20, 2004 at 17:49 UTC | |
by Streen (Sexton) on Apr 21, 2004 at 08:09 UTC | |
by Grygonos (Chaplain) on Apr 21, 2004 at 11:38 UTC | |
by Streen (Sexton) on Apr 21, 2004 at 12:32 UTC | |
by Streen (Sexton) on Apr 21, 2004 at 14:04 UTC |