PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Creating new explorer windows

Reply

Creating new explorer windows

 
Thread Tools Rate Thread
Old 02-03-2005, 08:04 PM   #1
Patrick McKinley
Guest
 
Posts: n/a
Default Creating new explorer windows


In VBA I want to create new explorers and activate their windows for the
Calendar and Contact folders in Outlook 2003.

(A) Interactively I can right click a button at the bottom of the Navigation
Pane and select "Open in New Window."

(B) From VBA, I can select the Calendar folder, get a new explorer, and
activate its window:
Set objNameSpace = objApplication.GetNamespace("MAPI")
Set mycalfolder = objNameSpace.GetDefaultFolder(olFolderCalendar)
Set expCalendar = mycalfolder.GetExplorer
expCalendar.Activate

Using (A) the explorer's class property is set to "olExplorer"
Using (B) the explroer's class property is set to "olView"

I believe it is this class difference that determines the icon used in the
Windows Task Bar.
However, the class property is read-only, and I do not know how to
programmaticlly emulate the interactive method.

Any ideas on how to set the icon in the Windows Task Bar for Outlook
Explorer objects?

Thanks,
Patrick



  Reply With Quote
Old 03-03-2005, 07:05 AM   #2
Michael Bauer
Guest
 
Posts: n/a
Default Re: Creating new explorer windows

Hi Patrick,

is it possible that you check the wrong properties? For me the
Explorer.Class property is always olExplorer.

--
Viele Grüße
Michael Bauer


"Patrick McKinley" <patrick_mckinley@agilent.com> wrote in message
news:1109793855.660120@cswreg.cos.agilent.com...
> In VBA I want to create new explorers and activate their windows for

the
> Calendar and Contact folders in Outlook 2003.
>
> (A) Interactively I can right click a button at the bottom of the

Navigation
> Pane and select "Open in New Window."
>
> (B) From VBA, I can select the Calendar folder, get a new explorer,

and
> activate its window:
> Set objNameSpace = objApplication.GetNamespace("MAPI")
> Set mycalfolder =

objNameSpace.GetDefaultFolder(olFolderCalendar)
> Set expCalendar = mycalfolder.GetExplorer
> expCalendar.Activate
>
> Using (A) the explorer's class property is set to "olExplorer"
> Using (B) the explroer's class property is set to "olView"
>
> I believe it is this class difference that determines the icon used in

the
> Windows Task Bar.
> However, the class property is read-only, and I do not know how to
> programmaticlly emulate the interactive method.
>
> Any ideas on how to set the icon in the Windows Task Bar for Outlook
> Explorer objects?
>
> Thanks,
> Patrick
>
>
>


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off