DocumentVariables Element (Microsoft Office)

Specifies the variables stored as part of a document.

Contained In



The subelements are determined by the variable names.


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:


See Also



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