Folder.WebViewOn Property (Outlook)


Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns or sets a Boolean indicating the Web view state for a folder. Read/write.

expression .WebViewOn

expression A variable that represents a Folder object.

Returns True to display the Web page specified by the WebViewURL property of the Folder object.

Microsoft Outlook uses the rendering engine of the version Windows Internet Explorer installed on the client computer to display the web page. If Internet Explorer is not installed on the client computer, Outlook will not display the web page.

This property is always False if the value of the WebViewURL property is empty.

Also, setting the WebViewOn property to True before setting the WebViewURL property will not display the home page specified in the WebViewURL property.

The following Visual Basic for Applications (VBA) example creates a subfolder under the Inbox folder and assigns a home page to it.

Sub SetupFolderHomePage() 
 Dim nsp As Outlook.NameSpace 
 Dim mpfInbox As Outlook.Folder 
 Dim mpfNew As Outlook.Folder 
 Set nsp = Application.GetNamespace("MAPI") 
 Set mpfInbox = nsp.GetDefaultFolder(olFolderInbox) 
 Set mpfNew = mpfInbox.Folders.Add("MyFolderHomePage") 
 mpfNew.WebViewURL = "" 
 mpfNew.WebViewOn = True 
End Sub


Other resources

© 2015 Microsoft