Outlook VBA在电子邮件正文中的特定单词之后移动光标

问题描述 投票:1回答:1

我写了这段代码将Outlook光标向右移动5个字:

Option Explicit
Public Sub Example()
    Dim Inspector As Outlook.Inspector
    Dim wdDoc As Word.Document
    Dim Selection As Word.Selection
Set Inspector = Application.ActiveInspector()
    Set wdDoc = Inspector.WordEditor
    Set Selection = wdDoc.Application.Selection
        Selection.MoveRight Unit:=wdCharacter, Count:=5, Extend:=wdMove
Set Inspector = Nothing
    Set wdDoc = Nothing
    Set Selection = Nothing
End Sub

您是否知道如何在电子邮件正文中的特定单词之后移动鼠标光标?谢谢

vba outlook outlook-vba
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.