Variables.Add Method

Returns a Variable object that represents a variable added to a document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Variable Add(
	string Name,
	ref Object Value
)

Parameters

Name
Type: System.String
Required String. The name of the document variable.
Value
Type: System.Object%
Optional Object. The value for the document variable.

Community Additions

ADD
Show: