【问题标题】:Convert RSS feed items to tasks in Outlook [duplicate]将 RSS 提要项目转换为 Outlook 中的任务 [重复]
【发布时间】:2020-06-24 04:54:56
【问题描述】:

可能重复:
Processing an RSS Feed using Outlook VBA Macro

我通过 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

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

【问题讨论】:

    标签: vba outlook task outlook-2010


    【解决方案1】:

    我不确定您的整体问题,但这修复了您上面的代码:

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多