javascript技巧

关注公众号 jb51net

关闭
首页 > 网络编程 > JavaScript > javascript技巧 >

Add Formatted Data to a Spreadsheet

作者:

Add Formatted Data to a Spreadsheet
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 
阅读全文