I
Expand Minimize
This topic has not yet been rated - Rate this topic

IHTMLControlElement Object

Office 2003
IHTMLControlElement

Represents HTML elements that provide user interactivity when they are displayed in a browser. Corresponding objects for these elements have, for example, tabIndex and accessKey properties, indicating that they are keyboard accessible, and onfocus and onblur properties, indicating that they are capable of receiving input focus. Elements that support the IHTMLControlElement object include:

BODY IFRAME SELECT
BUTTONIMAGETABLE
CAPTIONINPUTTD
EMBEDLEGENDTEXTAREA    
FIELDSET     MARQUEE     TH
FRAMEOBJECT

Using the IHTMLControlElement Object

Use the tags method to return an IHTMLElementCollection collection that represents a collection of all of the specified elements in a document. Use the Item method to return an IHTMLControlElement object that accesses a specific element, referenced by ordinal number or by the value of the id attribute. The following example sets the BODY element in the active document to an IHTMLControlElement object.

    Dim objControl As IHTMLControlElement

Set objControl = ActiveDocument.body
  


Parent Objects

Child Objects


Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.