DocumentVariables Element (Microsoft Office)

Specifies the variables stored as part of a document.

Contained In

WordDocument

Subelements

The subelements are determined by the variable names.

Remarks

This element contains information about the document variables, which are used to preserve macro settings between macro sessions. Each DocumentVariables subelement is formed by using information from an individual document variable stored in the document.

The following syntax shows how a DocumentVariables subelement is formed, where Name is the variable name and Value is the variable value:

<w:Name>Value</w:Name>

See Also

DocumentProperties

Example

This example shows a document that has a variable named "Temp" with a value of "12".

 <w:WordDocument>
  <w:DocumentVariables>
   <w:Temp>12</w:Temp>
  </w:DocumentVariables>
 </w:WordDocument>