Table of contents
Collapse the table of content
Expand the table of content

Application.WebAddToFavorites Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Adds a link to the current document or selection to the Favorites folder for the user.


expression. WebAddToFavorites( ** CurrentLink** )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
CurrentLinkOptionalBooleanTrue if a link will be added to the current selection. False if a link will be added to the current document. The default value is False.

Return Value



The Favorites folder is typically C:\Users\UserAlias\Favorites. For a project file named Basic.mpp that is saved in the E:\Project\VBA folder, WebAddToFavorites adds a link named Basic that has the following URL: file:///E:/Project/VBA/Samples/Basic.mpp

The WebAddToFavorites method is unavailable if the file has never been saved.

© 2018 Microsoft