Carrie Roberts* //
你是否想过为何要在MS Office文档属性中插入超长注释?本文介绍的PowerShell脚本可突破应用程序限制实现该功能。动画演示展示了脚本运行效果:
MS Word版本:
Dim prop As DocumentProperty
For Each prop In ActiveDocument.BuiltInDocumentProperties
If prop.Name = "Comments" Then
MsgBox prop.Value
End If
Next
MS Excel版本(仅需替换对象):
Dim prop As DocumentProperty
For Each prop In ActiveWorkbook.BuiltinDocumentProperties
If prop.Name = "Comments" Then
MsgBox prop.Value
End If
Next
PowerPoint版本:
Dim prop As DocumentProperty
For Each prop In ActivePresentation.BuiltInDocumentProperties
If prop.Name = "Comments" Then
MsgBox prop.Value
End If
Next
_______
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。