【发布时间】:2019-09-10 09:13:42
【问题描述】:
我想知道是否有办法更改文档中修订的作者,我找到了更改 cmets 的作者的方法,但对于修订部分没有。我试图在 Revisions.object 文档中找到一个属性/方法来改变它,但我什么也没找到。
正如我所说,我已经尝试过这样做:
Sub ChangeCommentCreator()
Dim I As Long
Dim Novo As String
Dim Corto As String
If Selection.Comments.Count = 0 Then
MsgBox "No comments in your selection!", vbInformation, "Alerta"
Exit Sub
End If
Novo = InputBox("New author name?", "Alerta")
Corto = InputBox("New author initials?", "Alerta")
If Novo = "" Or Corto = "" Then
MsgBox "The author name/initials can’t be empty.", vbInformation, "Alerta"
Exit Sub
End If
With Selection
For I = 1 To .Comments.Count
.Comments(I).Author = Novo
.Comments(I).Initial = Corto
Next I
End With
End Sub
我走对了,还是没有办法改变这一点?
【问题讨论】:
标签: vba ms-word ms-office revision author