But you will get the task item window opened for editing its properties. In that case the original window should be closed and the email is sent out. You need to call the Display method if you need to show an Outlook inspector window for editing task properties: Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) XRecipient = xRecipient & vbCrLf & Item.Body XRecipient = xRecipient & vbCrLf & Rcp.Address Set xTaskItem = Application.CreateItem(olTaskItem) XYesNo = MsgBox(xPrompt, vbYesNo + vbInformation, "Kutools for Outlook") XPrompt = "Do you want to create a task for this message?" Can anyone help please? Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) I just want the Task window to pop up with the email I sent populating it, but I want to add the dates etc. But if I click Yes, it creates the task without me editing it. It is find if a button pops up asking me if I want a task, and I have to click Yes or No. Mail.MarkAsTask( would like to be able to create a task from a Sent email in Outlook at the time of sending. Outlook.MailItem mail = Application.Session. TimeSpan duration = TimeSpan.FromDays(1) using Outlook = ĭateTime today = DateTime.Parse("10:00 AM") The following line of code shows how to do the import and assignment in C#. The using statement must not occur directly before the functions in the code example but must be added before the public Class declaration. If you use Visual Studio to test this code example, you must first add a reference to the Microsoft Outlook 15.0 Object Library component and specify the Outlook variable when you import the namespace. The example then uses the Save() method to save the item. by using the ReminderSet and ReminderTime properties. The example marks the item for follow-up tomorrow and sets a reminder for tomorrow at 10:00 A.M. In the following code example, CreateToDoItemExample creates a to-do item by calling the MarkAsTask method on the item and then saving the item. The following code example is an excerpt from Programming Applications for Microsoft Office Outlook 2007.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |