欢迎来到福编程网,本站提供各种互联网专业知识!

jscript之List Excel Color Values

发布时间:2007-06-13 作者: 来源:转载
DescriptionDemonstrationscriptthatdisplaysthevariouscolors--andtheirrelatedcolorindex--availablewhenprogrammaticallycontrollingMicrosoftExcel.ScriptCode复制代码代码如下:setobjExcel=CreateObject("Excel.Application")objExcel.Visible=Tru
Description

Demonstrationscriptthatdisplaysthevariouscolors--andtheirrelatedcolorindex--availablewhenprogrammaticallycontrollingMicrosoftExcel.
ScriptCode
复制代码 代码如下:
setobjExcel=CreateObject("Excel.Application")

objExcel.Visible=True
objExcel.Workbooks.Add

Fori=1to56
objExcel.Cells(i,1).Value=i
objExcel.Cells(i,1).Interior.ColorIndex=i
Next

相关推荐