The statement below will add the string variable called strHTML to
the div element with the attribute name id having a value of "contentwide".  The start tag will look like:  "<div id="contentwide">" without the outer quotation marks.

ActiveDocument.all.tags("div").Item _
GetElementIndexNumber("div", "ContentWide")). _
innerHTML = strHTML							

 

 

Valid XHTML 1.0 Transitional        Valid CSS!