【发布时间】:2019-07-24 17:37:44
【问题描述】:
在我的 VBA 宏中,我将一些文本插入到活动文档中。 插入后,光标不在插入的单词后面,如果您手动键入它,而是在插入的单词之前。如何移动它?
Dim insertedText As String
insertedText = "test"
With ActiveDocument
.Range.InsertAfter insertedText
'move the cursor behind insertedText
End With
【问题讨论】: