Partager via


WebViewURL Property

Returns or sets a String indicating the URL of the Web page that is assigned to a folder. Read/write.

expression**.WebViewURL**

*expression   * Required. An expression that returns a MAPIFolder object.

Example

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 outApp As New Outlook.Application
    Dim nsp As Outlook.NameSpace
    Dim mpfInbox As Outlook.MAPIFolder
    Dim mpfNew As Outlook.MAPIFolder
    
    Set nsp = outApp.GetNamespace("MAPI")
    Set mpfInbox = nsp.GetDefaultFolder(olFolderInbox)
    Set mpfNew = mpfInbox.Folders.Add("MyFolderHomePage")
    mpfNew.WebViewURL = "http://www.microsoft.com"
    mpfNew.WebViewOn = True
End Sub

Applies to | MAPIFolder Object

See Also | WebViewOn Property