|
|
Browse by Tags
All Tags » DevMsgTeam » Outlook Object Model (OOM) (RSS)
Showing page 1 of 3 (27 total posts)
-
Reading Journal attachments using Outlook Object Model: This time, i tried to read all the email and their attachments using Outlook Object Model. I used the following code snippet to do this. 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.JournalItem Dim myJournal As Outlook.Items Dim oattach As Outlook.Attachment Set myNamespace = Application.GetNamespace( "MAPI" ) Set myJournal = myNamespace.GetDefaultFolder(olFolderJournal).Items
Posted to Le Café Central de DeVa (Weblog) by deva on September 28, 2009
Filed under: Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, Programming, development, OLE, Attachment, Outlook, Journal, Journal Programming
-
After created couple of journal items in my test lab, i thought this time i want to play around with the Journal items. Also i want to try the following programmatically: 1) iterate all the available journal items 2) Restrict the values with a (if the Lastmodificationtime > ‘23/9/2009’) specific time frame For this i used Items( index). Here index is the index number of a journal entry or a value used to match the default property of a journal entry, to return a single JournalItem object from
Posted to Le Café Central de DeVa (Weblog) by deva on September 23, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, Restrict, Macro, Journal, Journal Programming
-
I want to share my research (that i tried to play around with Journal items) with respect to Outlook Object Model API to you. How to create the new Journal Item programmatically using Outlook Object Model? Now, we can try how we can create a new Journal Item. Code snippet: Creating a new Journal Item with Outlook Object Model & VBA 'Creates a new journal item Dim objMail As Outlook.JournalItem 'Create journal mail item Set objMail = Application.CreateItem(olJournalItem) With objMail .Body = "First
Posted to Le Café Central de DeVa (Weblog) by deva on September 23, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, Application, Journal, Journal Programming
-
Earlier i was working with one of the customer, where he wants to use Outlook Object Model to, - retrieve the default contact folder items - restrict on the retrieved items - get the restricted items and gets its values – Full Name, Categories, FileAs… etc Here is the way that i tried it – Code Snippet for your reference: Dim oOutlook As Outlook.Application Dim oNameSpace As Outlook. NameSpace Dim oFolder As Outlook.MAPIFolder Dim oContacts As Outlook.Items Dim oContact As Outlook.ContactItem Dim
Posted to Le Café Central de DeVa (Weblog) by deva on September 3, 2009
Filed under: Outlook Programming, Outlook Object Model (OOM), contacts, DevMSGTeam, development, Category, Outlook, Application, Outlook Categories, FileAs, Filter, Restrict
-
With continuation of my previous–related blog post , I got this task to find out the way how to identify the existing categories and updating/adding new categories in Outlook 2007 using Outlook Object Model programmatically. I tried the following to find whether the category exists or not: Public Function CategoryExists(categoryName As String ) As Boolean Dim category As Outlook.category Set category = Application.Session.categories(categoryName) If Not (category Is Nothing )
Posted to Le Café Central de DeVa (Weblog) by deva on July 22, 2009
Filed under: Code Snippets, How to, Outlook Programming, Outlook Object Model (OOM), DevMSGTeam, development, color, Category, Outlook, Outlook Categories, shortcutkey
-
In this blogpost, we will try to create the Outlook Categories programmatically using Outlook Object Model API. Also we will assign the relevant colors and shortcuts to that. Whenever we try with Outlook Object Model, it’s relatively simple. '[Code snippet to create Categories] Private Sub CreateCategory() Dim objNameSpace As NameSpace Dim objCategory As Category ' Obtain a NameSpace object reference Set objNameSpace = Application.GetNamespace( "MAPI" ) 'Add the Category, set its
Posted to Le Café Central de DeVa (Weblog) by deva on June 23, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBScript, VBA, DevMSGTeam, development, color, Category, samples, Outlook Categories, shortcutkey
-
In this post, we will create the simple Outlook tasks programmatically using Outlook Object Model API & VBA. We do this by using the code snippet: '[Code Snippet for creating Simple Tasks using Outlook Object Model API & VBA] Private Sub CreateTasks() 'Declare the Task item Dim objTask As TaskItem ' Create Outlook Task item Set objTask = Application.CreateItem(olTaskItem) 'Define its values objTask.Subject = "Test Item" objTask.Body = "Test task item" objTask.Importance
Posted to Le Café Central de DeVa (Weblog) by deva on June 23, 2009
Filed under: Outlook Object Model (OOM), VBScript, task, VBA, DevMSGTeam, Programming, development, TaskItem, CreateItem
-
Hi, Please find the following code snippet shows how we can modify/edit/add more or in-appropriate CSS/HTML tags available in the Outlook e-mail’s HTMLBody using Outlook Object Model: '[Code Snippet - Outlook Object Model '[How to modify Outlook e-mail's inappropriate CSS/HTML tags from its HTML Body ... 'Definition Dim str As String Dim str1 As String Dim omailitem As Outlook.MailItem Dim oattach As Outlook.Attachment Dim ofolder As Outlook.Folder 'str1 stands for CSS/HTML tag that needs
Posted to Le Café Central de DeVa (Weblog) by deva on May 11, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, Outlook, HTMLBodyPart, HTMLBody, tag
-
Please find the following code snippet for retrieving various Outlook attachments - Reference, Value, Embedded and OLE using Outlook Object Model (OOM) & VBA: 'Code Snippet : How to retrieve Outlook attachments using Visual Basic for Application (VBA) Dim omailitem As Outlook.MailItem Dim oattach As Outlook.Attachment Dim ofolder As Outlook.Folder Set ofolder = Application.Session.PickFolder Debug.Print "Total Items available in Folder : " & ofolder.Items.Count
Posted to Le Café Central de DeVa (Weblog) by deva on April 29, 2009
Filed under: Code Snippets, Outlook 2007, Outlook 2003, Outlook Programming, Outlook Object Model (OOM), VBA, DevMSGTeam, development, OLE, Attachment, Outlook
-
One of my customer had created an Outlook Add-in using VSTO & Outlook Object Model (OOM). As per the business logic, he need to implement the WebViewURL in it. The MAPIFolder.WebViewURL works fine and take’s us to set value to it most of the times, but it doesn’t function as expected in some time; the strange thing is it’s not throwing any error or exception when we execute the code. //[Code Snippet : C# , VSTO, Outlook Object Model (OOM)] ... //Provide the non-default store path String pstPath
Posted to Le Café Central de DeVa (Weblog) by deva on February 26, 2009
Filed under: VSTO, Store, Code Snippets, Outlook 2007, MAPI, E-Book, design, Outlook Add-in, KB, Outlook Programming, Outlook Object Model (OOM), Outlook UI, pane, pst, DevMSGTeam, Outlook UI Issues, development, Folder, Interop, Outlook View, View, WebViewURL, URL
1
|
|
|