VerifyAllLinks Method

       

Verifies all hyperlinks in the hierarchy of the current web. The VerifyAllLinks method is used by the Broken Hyperlinks report to display any pages with broken hyperlinks.

expression.VerifyAllLinks

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

The following example creates a reference to the active web window and calls the VerifyAllLinks method to check if any broken links exist in the current project. Then, the active web window switches to the Broken Hyperlinks reports view.

Sub VerifyLinks()
'Verifies broken links in the current view

    Dim objApp As FrontPage.Application
    Dim objWebwdw As WebWindowEx

    Set objApp = FrontPage.Application
    Set objWebwdw = objApp.ActiveWebWindow
    'Verify all links in the current web.
    objWebwdw.VerifyAllLinks

End Sub