notes读取word文档批注的问题

c104 2005-01-24 04:46:07
我需要在notes中读取某一个word文档的批注,可是我写的代码在vb里面是可以用的,在notes里面就是不行,提示Msgbox acom.Scope.Text类型不匹配
请帮忙看一下,谢谢!
代码如下:

Dim wordApplication As Variant
Dim wordWorkbook As Variant
Dim wordSheet As Variant

Dim selection As Variant

Set wordApplication = CreateObject("word.Application")
Call wordApplication.Documents.open ("C:\comments.doc")


Dim source1 As Variant
Set source1 = wordApplication.activedocument

Forall acom In source1.Comments
acom.Reference.Select
Msgbox acom.Scope.Text
Msgbox acom.Range
End Forall

wordApplication.Quit
Set wordApplication = Nothing
...全文
81 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
c104 2005-01-25
  • 打赏
  • 举报
回复
啊,对!
vb里Text属性是缺省的,notes不行!
ibm123 2005-01-24
  • 打赏
  • 举报
回复
Msgbox acom.Range.text

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧