HTMLProjectItems Collection

Microsoft Office Visual Basic

HTMLProjectItems Collection

HTMLProject HTMLProjectItems
HTMLProjectItem

A collection of HTMLProjectItem objects that represent the HTML project items contained in the HTMLProject object.

Using the HTMLProjectItems Collection

Use the HTMLProjectItems property of the HTMLProject object to return the HTMLProjectItems collection. Use the Count property of the HTMLProjectItems collection to return the number of project items in the HTML project for the specified document. Use the Item method of the HTMLProjectItems collection to return an individual project item. The following example returns the name of the first project item in the HTMLProjectItems collection for the active document.

MsgBox "The first item is " & _
    ActiveDocument.HTMLProject.HTMLProjectItems(1).Name