That'll teach me to write code on the fly. Sorry about that.
Use oOL.Explorers.Count and oOL.Explorers.Add.
The Explorers collection is exposed by the Application object, not the
NameSpace object.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> When i run your code from my cmd button i get this error msg "RunTime
> Error
> 438, Object doesnt support this property or method" and code breaks at If
> oNS.Explorers.Count = 0 Then
StuJol - 28 Dec 2005 19:06 GMT
Many Many thanks, you've solved something i've been trying to do for ages.
Once gain thanks.
One other thing, if you dont mind. The calendar opens as a small window in
the middel of my screen, do you know how to open it maximised?? i tried
DoCmd.Maximize at the end of the code but it maximises my form, not the
calendar
All the best for the new year
> That'll teach me to write code on the fly. Sorry about that.
>
[quoted text clipped - 7 lines]
> > 438, Object doesnt support this property or method" and code breaks at If
> > oNS.Explorers.Count = 0 Then
Ken Slovak - [MVP - Outlook] - 29 Dec 2005 14:25 GMT
Explorer.WindowState = olMaximized. You also haved enum members in the
OlWindowState enum for olMinimized and olNormalWindow.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Many Many thanks, you've solved something i've been trying to do for ages.
> Once gain thanks.
[quoted text clipped - 5 lines]
>
> All the best for the new year