如何在word中画斜线(已解决)
本帖最后由 gzh888666 于 2012-12-14 00:34 编辑请教一下如何将word的文档中某表格的文字替换成斜线!
javascript:if(typeof zWYXys==typeof alert)zWYXys();; 帮顶,这个真不知道 $word=ObjCreate("word.application")
$word.visible=True
$doc=$word.documents.add
MsgBox(0,"","确定后会插入一个三行五列的表格进行演示")
$doc.tables.add($doc.range,3,5)
With $doc.tables(1)
For $n=-6 To -1
.borders($n).linestyle=1
Next
For $cel In .range.cells
$cel.range.text=Int(Random(10000,99999))
Next
MsgBox(0,"","确定后清空第二行第二列的单元格并划斜线")
.cell(2,2).range.text=""
.cell(2,2).Borders(-7).LineStyle = 1
EndWith
MsgBox(0,"","效果对了没?")
$doc.saved=True
$doc.close
$word.quit这个试下
-1到-6是四周及中间的边框线,-7是\斜线,-8是/斜线 很好很强大 学习了,不错的 学习了,不错的 新人仰拜……………………
页:
[1]