AddToFavorites Method

         Example         Applies To

Presentation object: Adds a shortcut to the current selection in the specified presentation to the Favorites folder in the Windows program folder.

Hyperlink object: Adds a shortcut to the specified hyperlink's target document to the Favorites folder in the Windows program folder.

Syntax

expression.AddToFavorites

expression   Required. An expression that returns a Presentation or Hyperlink object.

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.