回复 楼主 王咸美
* test.prg
public m.goexcel as excel.application
m.goexcel = createobject("excel.application")
m.goexcel.visible= .t.
m.goexcel.workbooks.add()
with m.goexcel.activesheet
rand(-1)
for m.i=1 to 100
.cells(m.i,1).value=ROUND(58+4*rand(),1)
.cells(m.i,2).value=ROUND(58+4*rand(),1)
.cells(m.i,3).value=ROUND(58+4*rand(),1)
.cells(m.i,4).value=ROUND(58+4*rand(),1)
next
endwith
with m.goexcel.activesheet
for
m.j=1 to 4
for m.i=1 to 100
if .cells(m.i,m.j).value<60
.cells(m.i,m.j).font.color = 250
endif
next
next
endwith
[此贴子已经被作者于2018-1-21 13:58编辑过]