IHTMLFramesCollection2 Object

Microsoft FrontPage Visual Basic

IHTMLFramesCollection2 Object

Multiple objects IHTMLFramesCollection2

Represents a collection of FRAME elements in an HTML document.

Using the IHTMLFramesCollection2 Object

Use the frames property to return an IHTMLFramesCollection2 object. The following example accesses the collection of FRAME elements in the active document and then uses the Item method to access the first FRAME element in the collection.

    Dim objFrames As IHTMLFramesCollection2
Dim objFrame As FPHTMLFrameElement

Set objFrames = ActiveDocument.frames
Set objFrame = objFrames.Item(0)