HomeNavigationNode Property Example

This example accesses the HomeNavigationNode object and retrieves the URL for the home page.

Private Sub GetHomeNavigationNode()
Dim myWeb As Web
Dim myHomeNode As NavigationNode
Dim myHomeUrl As String

Set myWeb = ActiveWeb

myHomeNode = myWeb.HomeNavigationNode
myHomeURL = myHomeNode.Url
End Sub