VB VBA 能否将光标定位到WORD第三段的段尾,谢谢
VB VBA 能否将光标定位到WORD第三段的段尾,谢谢Option Explicit
Private Sub Command1_Click()
Dim wordApp As Word.Application, Word As Document
Set wordApp = CreateObject("Word.Application") '加入各服务中心的头一张“合格供方复评记录”代码
Set Word = wordApp.Documents.Open(App.Path & "\11111.doc")
wordApp.Visible = False
'将光标定位到WORD第三段的段尾
Word.SaveAs App.Path & "\11111.doc"
Word.Close
Set Word = Nothing
wordApp.Quit
Set wordApp = Nothing
End Sub
VB WORD 将光标定位到第三段段尾(问题).rar
(6.78 KB)