PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Creating new explorer windows
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Creating new explorer windows
![]() |
Creating new explorer windows |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

