我有一个Word文档,我想对其进行以下处理:
我有这段代码,可以反转文本:
Sub ReverseSelectedWords()
Dim i As Integer
Dim oWords As Words
Dim oWord As Range
Set oWords = Selection.Range.Words
For i = 1 To oWords.Count Step 1
Set oWord = oWords(i)
Do While oWord.Characters.Last.Text = " "
Call oWord.MoveEnd(WdUnits.wdCharacter, -1)
Loop
Debug.Print "'" & oWord.Text & "'"
oWord.Text = StrReverse(oWord.Text)
Next i
End Sub
答案 0 :(得分:0)
对于您所描述的目标,应该使用一个密码来打开文档并仅向预期的读者提供该密码。不需要代码。