Share via


Variable Object Members

Word Developer Reference

Represents a variable stored as part of a document. Document variables are used to preserve macro settings in between macro sessions. The Variable object is a member of the Variables collection. The Variables collection includes all the document variables in a document or template.

Methods

  Name Description
Bb258005.methods(en-us,office.12).gif Delete Deletes the specified variable.

Properties

  Name Description
Bb258005.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb258005.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb258005.properties(en-us,office.12).gif Index Returns a Long that represents the ordinal position of a variable with in the collection of variables. Read-only.
Bb258005.properties(en-us,office.12).gif Name Returns the name of the specified object. Read-only String.
Bb258005.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Variable object.
Bb258005.properties(en-us,office.12).gif Value Returns or sets the value of a document variable. Read/write String.