Global $word = ObjCreate("word.application")
$word.visible = True
dim $kword1="你"
$wb=$word.documents.open("C:\Documents and Settings\Administrator\桌面\1.docx")
With $wb.application.selection.find
.clearformating
.replacement.clearformating
.replacement.font.colorindex=6
.replacement.font.bold = true
.Execute($kword1, Default, Default, Default, Default, Default, Default, Default, Default, $kword1, 2)
EndWith
kevinch 前辈 还有楼主~~其实我连这个楼主搞定的选字变色都还没有搞定~~
C:\Documents and Settings\Administrator\??\sdsdf.au3 (8) : ==> The requested action with this object has failed.:
为什么对象请求失败呢? |