Home > Web Front-end > JS Tutorial > body text

jscript之List Excel Color Values_javascript技巧

WBOY
Release: 2016-05-16 19:12:26
Original
1035 people have browsed it

Description

Demonstration script that displays the various colors -- and their related color index -- available when programmatically controlling Microsoft Excel. 
Script Code

复制代码 代码如下:

set objExcel = CreateObject("Excel.Application")

objExcel.Visible = True
objExcel.Workbooks.Add

For i = 1 to 56
    objExcel.Cells(i, 1).Value = i
    objExcel.Cells(i, 1).Interior.ColorIndex = i
Next

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!