
Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
Sue,
Outlook verision 2003, SP1
I understand why the code below runs right by the calendar I want, my
problem is how to stop it and open it up properly. Comments? Seems to
debug O'k.
Steve
if (objfolder3.Name == publicFolderLevel3)
{
...Interop.Outlook.Explorer olExplorer = olApp.ActiveExplorer();
IEnumerator EmpEnumerator = objfolder3.Folders.GetEnumerator();
EmpEnumerator.Reset();
// 6 = objfolder3.Folders.Count;
while(EmpEnumerator.MoveNext())
{
olExplorer.CurrentFolder = (....MAPIFolder)EmpEnumerator.Current;
if(olExplorer.Caption.ToString() == confRmName)
{
olExplorer.Activate();
//olExplorer.CurrentFolder = null;
//EmpEnumerator= null;
//break;
}
}
> Outlook version? Did you try setting ActiveExplorer.CurrentFolder?
> > Sorry Sue - I guess I don't understand
[quoted text clipped - 53 lines]
> >> >
> >> > }
Sue Mosher [MVP-Outlook] - 03 Mar 2005 17:02 GMT
I still don't understand what you mean by "properly," but if you want to
show an additional folder in the Calendar pane, you set
ActiveExplorer.IsFolderSelected.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Sue,
>
[quoted text clipped - 29 lines]
>
>> Outlook version? Did you try setting ActiveExplorer.CurrentFolder?
>> > Sorry Sue - I guess I don't understand
>> >
[quoted text clipped - 55 lines]
>> >> >
>> >> > }
Helmut Obertanner - 03 Mar 2005 19:16 GMT
Hello Sue, hello Steve,
i have a function here, don't know if it helps.
It uses the Built in Outlook function from CommandBar "GoToFolder":
myOutlookExplorer is the ActiveExplorer.
The FolderPath is something like:
"PublicCalendar"
or
"res://C:\CRM\webresource.dll/index.htm"
for an FolderHomepage from a dll.
/// <summary>
/// Change the Explorer to another Folder
/// </summary>
/// <param name="FolderPath"></param>
private void GotoFolder(string FolderPath)
{
try
{
Office.CommandBarComboBox myCombo = (Office.CommandBarComboBox)
myOutlookExplorer.CommandBars.FindControl(26, 1740,myMissing,myMissing);
if (myCombo != null)
{
myCombo.Text = FolderPath;
Marshal.ReleaseComObject (myCombo);
}
}
catch (System.Exception ex)
{
Logger.LogError (CLASS_NAME , "GotoFolder",ex,FolderPath);
}
}
Hope that Helps,
Greets, Helmut Obertanner.
> Sue,
>
[quoted text clipped - 88 lines]
>> >> >
>> >> > }