- 时间:2022-11-24 06:07 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:jscript之List Excel Color Values
Description
Demonstration script that displays the various colors -- and their related color index -- available when programmatically controlling Microsoft Excel.
[b]Script Code [/b]
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