|
|
|||
| 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*? Eduscho 03-May-2003 12:29 |
||
|
|
Sue Mosher
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. |
||
|
|
Eduscho
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. |
||
|
|
Rennie Govenderr
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 |
||
|
|
Sue Mosher
17-Sep-2003 07:52
That is so sneaky. A typical Outlook solution, right? |
||
|
|
|||
