Microsoft KB Archive/305093

= OL2002: The WebViewOn Property Does Not Display Home Page =

Article ID: 305093

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Outlook 2002 Standard Edition

-



This article was previously published under Q305093



SYMPTOMS
You use the WebViewOn property in the Outlook object model, but it does not display a home page that is associated with a folder.



WORKAROUND
To work around this problem, have the user switch to another folder, and then switch back to the folder with the home page.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
This behavior is different than in Microsoft Outlook 2000, which automatically displays the folder home page when you set the WebViewOn property to True.

Steps to Reproduce the Problem
 Click your Contacts folder.  Run the following Outlook Visual Basic for Applications code: Sub DisplayFolderHomePage Set oFolder = Session.GetDefaultFolder(olFolderContacts) oFolder.WebViewURL = &quot;http://www.microsoft.com&quot; oFolder.WebViewOn = True ' Set ActiveExplorer.CurrentFolder = Session.GetDefaultFolder(olFolderCalendar) ' Set ActiveExplorer.CurrentFolder = oFolder Set oFolder = Nothing End Sub Note that the folder does not show the home page.

 Remove the home page from the folder. To do this, right-click the Contacts folder, and then click Properties. On the Home Page tab, click Restore Defaults, and then click OK. Uncomment the two commented lines of the preceding code. Run the code again.</ol>

The result is that the folder displayed is still the Calendar folder.

<div class="references_section">