perl操作excel(更新+编辑excel)(更新+VLOOKUP公式使用+#VALUE!错误)

来源:互联网 发布:金润雅 知乎 编辑:程序博客网 时间:2024/05/05 05:27

1、perl使用 use Spreadsheet::ParseExcel;和 use Spreadsheet::WriteExcel; 不能同时读写同一个excel文件。

      用 Win32::OLE ---- 专用于Windows 貌似可以,不过linux下不行。

2、perl处理excel用到的公式和格式:

       http://search.cpan.org/~jmcnamara/Spreadsheet-WriteExcel-2.37/lib/Spreadsheet/WriteExcel/Examples.pm#Example:_colors.pl

 

增加:

编辑一个已经存在的excel文档:

use Spreadsheet::ParseExcel;
use Spreadsheet::ParseExcel::SaveParser;

更多详细的资料在:http://search.cpan.org/dist/Spreadsheet-ParseExcel/lib/Spreadsheet/ParseExcel/SaveParser.pm

 

增加:

使用VLOOKUP公式在excel中,新的excel出现#VALUE!错误的情况及解决办法:

http://stackoverflow.com/questions/2229844/how-do-i-get-perls-spreadsheetwriteexcel-to-create-formulas-with-vlookup
原创粉丝点击