From any Office application, go to Tools/References and select Microsoft
Outlook... from the list.
If it's really necessary to have Outlook visible then modify your code a
little bit:
Dim Olook As Outlook.Application
Set Olook = CreateObject("Outlook.Application")
Olook.Explorers.Add
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?...4&languageid=1
(German:
http://www.VBOffice.net/product.html?pub=6)
Am Wed, 21 Mar 2007 21:08:02 -0400 schrieb CES:
Michael Bauer [MVP - Outlook] wrote:
The error occurs because Outlook is unknown to you project. Add a
reference
to its library.
To make Outlook visible, add an Explorer to its Explorers collection.
Michael,
I'm sorry but I'm not sure what you mean when you y "Add a references to
it's library... could you possible point me to a simple example of how to
open Outlook from Any Office 2007 application. Thanks - CES