当前位置:Gxlcms > JavaScript > Add Formatted Data to a Spreadsheet

Add Formatted Data to a Spreadsheet

时间:2021-07-01 10:21:17 帮助过:6人阅读

Script Code

代码如下:
Set objExcel = CreateObject("Excel.Application") 

objExcel.Visible = True 
objExcel.Workbooks.Add 
objExcel.Cells(1, 1).Value = "Test value" 
objExcel.Cells(1, 1).Font.Bold = TRUE 
objExcel.Cells(1, 1).Font.Size = 24 
objExcel.Cells(1, 1).Font.ColorIndex = 3 

人气教程排行