frames Property
Returns a IHTMLFramesCollection2 object that represents the windows in which pages specified in FRAME elements are displayed.
expression.frames
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example accesses the window in which the first frame in the active document is displayed.
Dim objFrame As FPHTMLWindow2
Set objFrame = ActivePageWindow.FrameWindow.frames.Item(0)