Home  >  Article  >  Web Front-end  >  Add Formatted Data to a Spreadsheet_javascript技巧

Add Formatted Data to a Spreadsheet_javascript技巧

WBOY
WBOYOriginal
2016-05-16 19:12:23961browse

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 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn