require 'win32ole'
myexcel = WIN32OLE.new("excel.application")#WIN32OLE.open 方法打开用例文件,用Call sub方法(如果有的话) 来调用Excel中的静态检查的宏
myexcel.visible=true
mywbk = myexcel.Workbooks.Add()
mywst= mywbk.Worksheets(1)
mywst.Range('A1:D1').value =['1','2','3','4']
mywst.Workbooks.

有用的链接 http://wjason.iteye.com/blog/1565358    http://jingpin.jikexueyuan.com/article/51632.html

04-27 00:29