网络编程
位置:首页>> 网络编程>> JavaScript>> jscript之List Excel Color Values

jscript之List Excel Color Values

  发布时间:2004-07-04 18:39:34 

标签:jscript之List,Excel,Color,Values

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
0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com