Hyperlink.AddToFavorites Method
Word Developer Reference |
Creates a shortcut to the document or hyperlink and adds it to the Favorites folder.
Syntax
expression.AddToFavorites
expression Required. A variable that represents a Hyperlink object.
Example
This example creates a shortcut for each hyperlink in the active document and adds it to the Favorites folder.
Visual Basic for Applications |
---|
|
This example creates a shortcut to Sales.doc and adds it to the Favorites folder. If Sales.doc isn't currently open, this example opens it from the C:\Documents folder.
Visual Basic for Applications |
---|
|
See Also