crausch

crausch

  • NA
  • 53
  • 0

Working with C# and Outlook 2003

Jun 25 2004 8:07 AM
After reading a very good article posted at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/ol03csharp.asp I am trying to create a Add-in for Outlook2003. The works well, but I am having difficulty determining how to access selected emails. My add-in creates a command button on the tool bar. When the user clicks the button, I want to run a process against any emails that are selected (highlighted) in the current folder. I create a folder object using the following... MAPIFolder inboxFolder = outlookNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox); My problem is I do not see how to retrieve only the selected emails?