Szerkesztés

Megosztás a következőn keresztül:


Folder.WebViewURL property (Outlook)

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

Syntax

expression. WebViewURL

expression A variable that represents a Folder 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 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 = "https://www.microsoft.com" 
 
 mpfNew.WebViewOn = True 
 
End Sub

See also

Folder Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.