AddToFavorites Method

Applies To

HyperLink object, Presentation object.

Description

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.

Example

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

Application.ActivePresentation.AddToFavorites