Every file opened in Expression Web is opened as a PageWindow.
The PageWindows caption can be found with:
WebDesigner.ActiveWebWindow.PageWindows(i).Caption
Caption Output
file:///C:/Documents and Settings/rdahl/My Documents/ My Web Sites/AutomationInformation/Programming/ MicrosoftExpressionWeb/Text/PageWindows.htm
It is often more useful to just use the nameProp property. It can be found with:
WebDesigner.ActiveWebWindow.PageWindows(i). _ ActiveDocument.nameProp
nameProp Output:
PageWindows