Ruby 初心者スレッド Part 23
■ このスレッドは過去ログ倉庫に格納されています
0274デフォルトの名無しさん
2008/12/08(月) 15:56:10OLE詳しい人Help!
require 'win32ole'
module Excel
end
excel = WIN32OLE.new('Excel.Application')
excel.visible = false
excel.displayAlerts = false
file = "適当なフォルダパス"
book1 = excel.Workbooks.open(file)
sheet1 = book1.sheets(1)
sheet1.Range('A8').Select
chart1 = excel.Charts.Add()
chart1.Type=ExcelConst::XlLine
chart1.ChartType=ExcelConst::XlLineMarkers
chart1.SetSourceData Source=sh7.Range("B96:C106")
#続く
■ このスレッドは過去ログ倉庫に格納されています