AddToFavorites Method

Microsoft PowerPoint Visual Basic

object) or the specified hyperlink's target document (for the Hyperlink object).

expression.AddToFavorites

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The shortcut name is the friendly name of the document, if that's available; otherwise, the shortcut name is as calculated in HLINK.DLL.

Example

This example adds a hyperlink to the active presentation to the Favorites folder in the Windows program folder.

Application.ActivePresentation.AddToFavorites