Document.Variables (Word)

Returns a Variables collection that represents the variables stored in the specified document.

For information about returning a single member of a collection, see Returning an object from a collection.


ActiveDocument.Variables.Add Name:="Value1", Value:="1" 
MsgBox ActiveDocument.Variables("Value1") + 3