Add Formatted Data to a Spreadsheet
发布时间:2016-12-30 来源:查字典编辑
摘要:ScriptCode复制代码代码如下:SetobjExcel=CreateObject("Excel.Application")objExc...
ScriptCode
复制代码 代码如下:
SetobjExcel=CreateObject("Excel.Application")
objExcel.Visible=True
objExcel.Workbooks.Add
objExcel.Cells(1,1).Value="Testvalue"
objExcel.Cells(1,1).Font.Bold=TRUE
objExcel.Cells(1,1).Font.Size=24
objExcel.Cells(1,1).Font.ColorIndex=3