LocatePage method as it applies to the Application object.
Returns a PageWindowEx object for the specified object.
expression.LocatePage(DocumentUrl, ViewMode)
expression Required. An expression that returns an Application object.
DocumentUrl Required A String that represents the document or file portion of the entire URL. This can be any absolute URL, such as "http://web server/document", "http://web server/file", or "file://file system/document" or "file://file system/file" for disk-based webs. The default value is the file portion of the URL.
ViewMode Optional An FpPageViewMode constant that represents the view mode .
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
LocatePage method as it applies to the WebEx object.
Returns the PageWindowEx object associated with the current web.
expression.LocatePage(FileUrl, ViewMode)
expression Required. An expression that returns one of the above objects.
FileUrl Required A String that represents the document or file portion of the entire URL.
ViewMode Optional An FpPageViewMode constant that represents the view mode ..
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
This example locates a page in the root web and a subweb.
Private Sub LocatePages()
Dim myRootPage As PageWindowEx
Dim myWebPage As PageWindowEx
Set myRootPage = _
Application.LocatePage("Zinfandel.htm", fpPageViewNormal)
Set myWebPage = _
Webs(1).LocatePage("Zinfandel.htm", fpPageViewNormal)
End Sub