This method adds a Web page to the list of Web pages.
Syntax
IStartPages.Add(URL)
Parameters
URL
The URL of the Web page to add to the list of Web pages.
Example
The following example adds the http://www.microsoft.com Web page to the list of Web pages that Search crawls.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objStartPages, objStartPage
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog2")
Set objStartPages = objCatalog.objStartPages
Set objStartPage = objStartPages.Add("http://www.microsoft.com")
...
'Release objects
Set objStartPage = Nothing
Set objStartPages = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also