【发布时间】:2013-05-17 00:30:35
【问题描述】:
所以,我有一个如下所示的自定义电子邮件表单/消息,我想访问“文档标题:”字段值以将其插入到电子邮件正文中。
我目前有这个代码;
Function Item_Send()
Item.Body = Item.Body + UserProperties.Find("TextBox1").Text
End Function
我已经尝试了多种变体,例如Item.UserProperties.Find(...).Value、Find(...).Value 本身、UserProperties.Find("TextBox1", false).Text 等。
研究;
CodeProject
MSDN Find Method Documentation
Microsoft Support - How to create an email message form
Microsoft Support - FAQ about custom outlook forms
Microsfot Support - Working with User Defined Fields
我似乎无法找到解决方案。
贴出的代码返回Object requred: 'UserProperties.Find(...)'
如果我将false 添加到我得到的参数中; Object doesn't support this property of method: 'UserProperties.Find'
自己查找给了我Type mismatch: 'Find'
这就是我能得到的所有错误消息。任何帮助将不胜感激。 (我使用的是脚本编辑器按钮来编写上面的代码,而不是 Visual Basic 按钮)。
【问题讨论】:
标签: vba outlook outlook-2010 user-defined-fields