I d like obtain the Conversation ID (which is in the header of a message).
我假定,在展望图书馆,它属于“邮电系统”班级和电离层信息数据库成员。 我在如何从选定的电子邮件、开放式电子邮件或作为新邮局起火的事件中获取这种信息方面正遭受损失。
任何帮助都将受到全球教育论坛的赞赏。
I d like obtain the Conversation ID (which is in the header of a message).
我假定,在展望图书馆,它属于“邮电系统”班级和电离层信息数据库成员。 我在如何从选定的电子邮件、开放式电子邮件或作为新邮局起火的事件中获取这种信息方面正遭受损失。
任何帮助都将受到全球教育论坛的赞赏。
这一例子将在信息箱中显示对话情况。
Sub GetConvID()
Dim obj As Object
Dim msg As Outlook.mailItem
Set obj = GetCurrentItem
If TypeName(obj) = "MailItem" Then
Set msg = obj
MsgBox msg.ConversationID
End If
End Sub
Function GetCurrentItem() As Object
returns reference to current item, either the one
selected (Explorer), or the one currently open (Inspector)
Select Case True
Case IsExplorer(Application.ActiveWindow)
Set GetCurrentItem = ActiveExplorer.Selection.item(1)
Case IsInspector(Application.ActiveWindow)
Set GetCurrentItem = ActiveInspector.CurrentItem
End Select
End Function
Function IsExplorer(itm As Object) As Boolean
IsExplorer = (TypeName(itm) = "Explorer")
End Function
Function IsInspector(itm As Object) As Boolean
IsInspector = (TypeName(itm) = "Inspector")
End Function
关于新邮局:
The NewMail event is useful for scenarios in which you want to be notified when a new e-mail message arrives. If you want to process items that arrive in the Inbox, consider using the ItemAdd event on the collection of items in the Inbox. The ItemAdd event passes a reference to each item that is added to a folder.
为在这次活动中查阅选定的电子邮件,使用ActiveExplorer.Selection.item(1)
。 查阅公开电子邮件:ActiveInspector.CurrentItem
。
In C#, I know that I can overload the constructor for a class by specifying it in the body of the class: public class MyClass() { public MyClass(String s) { ... } } This overrides the default ...
I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...
I recently switched to Outlook 2007 and noticed that my VBA-macros won t work. I use the following code to open a new appointment-item (and fill it automatically). It worked perfect in Outlook 2003, ...
The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...
I m using Application run to call several macros in order like this. Sub Run_All_Macros() Application.Run ("Macro_1") Application.Run ("Macro_1") End Sub When I start Run_All_Macros, all the ...
I m using Microsoft Office 2003 and creating a bunch of template documents to standardize some tasks. I asked this on Superuser.com and got no response so I m thinking it s too program-y and hoping I ...
I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...
I need to ensure a Macro which works on Visio 2003 doesn t cause problems on lower versions of Visio: specifically because I m writing to a property which doesn t exist on lower versions of Visio. ...