Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.31 KB

Project.Application.WebAddToFavorites.md

File metadata and controls

46 lines (27 loc) · 1.31 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.WebAddToFavorites method (Project)
vbapj.chm1314
vbapj.chm1314
project-server
Project.Application.WebAddToFavorites
3cf8b3e7-4dbf-8555-1662-2412e7d420b0
06/08/2017
medium

Application.WebAddToFavorites method (Project)

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

Syntax

expression. WebAddToFavorites( _CurrentLink_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
CurrentLink Optional Boolean True 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

Boolean

Remarks

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.

[!includeSupport and feedback]