Bagikan melalui


Variable Object Members

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

Delete

Deletes the specified variable.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Index

Returns a Long that represents the ordinal position of a variable with in the collection of variables. Read-only.

Name

Returns the name of the specified object. Read-only String.

Parent

Returns an Object that represents the parent object of the specified Variable object.

Value

Returns or sets the value of a document variable. Read/write String.