perl操作excel(更新+編輯excel)(更新+VLOOKUP公式使用+#VALUE!錯誤)

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章