1

可能重复:
使用 Outlook VBA 宏处理 RSS 提要

我通过 RSS Feed 接收作业,我希望能够将 Feed 项转换为任务。

如何在 VBA 中获取 RSS 提要?我找不到“RSSItem”,但可以找到一个TaskItem。

我尝试通过以下方法获取 RSS 提要,但我无法将提要项的正文放入字符串中。它甚至不会让我找到字符串的长度。我在运行它时收到“无效的限定符”错误。

Sub ProcessRSS()
' Read RSS items and process the usful ones.
Dim objList As Object
Dim objItem As Object
Dim contents As String

Set objList = Application.ActiveExplorer.CurrentFolder.Items
contents = objList(1).Body

'Print Lenght of String
MsgBox (Str(contents.Lenght))
End Sub

如何将 RSS 提要项转换为 Outlook 2010 VBA 中的任务?

4

1 回答 1

0

我不确定您的整体问题,但这可以解决您上面的代码:

Sub ProcessRSS()
' Read RSS items and process the usful ones.
Dim objItem As Object

Set objItem = Application.ActiveExplorer.CurrentFolder.Items(1)
'Print Length of String
MsgBox Len(objItem.Body)
End Sub
于 2012-02-19T17:09:06.407 回答