How can I run a macro in an Excel file I open with Perl?
相关问题
- $ENV{$variable} in perl
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
相关文章
- Get column data by Column name and sheet name
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
Here is a skeleton of what might work.
One of the most sure ways that you can do this is to simply record a macro of opening a spreadsheet and running a macro. And then taking a look at the macro code that was generated and convert it into Perl. Keep in mind that the OLE object is the Application object.
9/22/2010 - I added
quit
to stop Excel from running.