【已解决】word操作,如何换行
本帖最后由 种菜砍柴 于 2016-6-29 14:07 编辑按照以下代码,只能把这三行写到一起,没有换行,求教word如何换行呢?多谢!!!
$word = ObjCreate("word.application")
$word.visible = True
Dim $doc
With $word
$doc=.documents.add
$doc.application.selection.range.text="dsadasdasd"
$doc.application.selection.range.text="dsadasdasd"
$doc.application.selection.range.text="dsadasdasd"
EndWith
$word = ObjCreate("word.application")
$word.visible = True
Dim $doc
With $word
$doc=.documents.add
$doc.application.selection.range.text="dsadasdasd"&@CRLF
$doc.application.selection.range.text="dsadasdasd"&@CRLF
$doc.application.selection.range.text="dsadasdasd"&@CRLF
EndWith
學習了。原來是這樣子。{:1_501:} 多谢指教{:face (427):}
页:
[1]