Document.AddToFavorites Method (2007 System)

Creates a shortcut to the document and adds it to the Favorites folder.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
Public Sub AddToFavorites
'Usage
Dim instance As Document

instance.AddToFavorites()
public void AddToFavorites()
public:
void AddToFavorites()
public function AddToFavorites()

Examples

The following code example adds the current document to the Favorites folder.

This example is for a document-level customization.

Private Sub DocumentAddToFavorites()
    Me.AddToFavorites()
End Sub
private void DocumentAddToFavorites()
{
    this.AddToFavorites();
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace