Location Object

SharePoint Designer Developer Reference

The Location object contains members that provide information about the current URL.

Interfaces
This object implements the following interfaces

Remarks

Use the location property to return a Location object. Use the href and pathname properties of the Location object to return the path and file name of a specified document. Use the reload method to reload the page. The following example reloads the specified document.

Note

When you use the reload method on a saved document that has been changed but not resaved, a message appears asking whether the user wants to revert to the previously saved version.

Visual Basic for Applications
Sub ReloadDocument()
    Dim objLocation As Location
    
    Set objLocation = ActiveDocument.Location
    
    objLocation.reload
End Sub

See Also