More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 02-Sep-2010 22:33

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Outlook Expert Techniques Printer Friendly Version
Working with toolbars, menus, ribbon; generating custom reports; deploying forms; connecting to databases, Exchange folders, and XML Web services
Topic
Outlook View Control
I am using the view control (Outlook 2000) within the outlook form. How can I access a selected item *in that OVC*?

  03-May-2003  12:29
  03-May-2003  13:19   
The Outlook 2000 version of the OVC does not support a Selection collection. However, if the OVC is being used in a folder home page and is displaying that same folder, you can use ActiveExplorer.Selection.
  03-May-2003  14:35   
Thanx for an answer. If I understand you well there is no way how to get to selected items when using OVC in a form.
  17-Sep-2003  07:50   
Hi Eduscho, I have used this code, although not the neatest, but the only way for now. Call the "Open method of the OVC" then then get reference to items opened.

OV1.Open 'open items, get reference and then close it
        For ctr = oApp.Inspectors.Count To 1 Step -1
                Set objItem = Inspectors.Item(ctr).CurrentItem
                Inspectors.Item(ctr).Close (olDiscard)
                "other code to get the message title here"
                objItem.SaveAs "c:\"MessageTitle.msg", olMSG
        Next ctr
Hope this helps.
Rgds
Rennie
 
  17-Sep-2003  07:52   
That is so sneaky. A typical Outlook solution, right?
    Page [ 1 ]  
Post a new message to this topic.



name        email