VerifyAllLinks Method

Microsoft FrontPage Visual Basic

VerifyAllLinks Method

Verifies all hyperlinks in the specified Web site.

Note  The Broken Hyperlinks report uses the VerifyAllLinks method to display any pages with broken hyperlinks.

expression.VerifyAllLinks

expression    Required. An expression that returns a WebWindowEx object

Example

The following example uses the VerifyAllLinks method to check for broken links in the active Web site, and then switches to the Broken Hyperlinks report 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