Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Field codes: DocVariable field
 

{ DOCVARIABLE "Name" }

Inserts the string assigned to a document variable (variable: A named storage location capable of containing data that can be modified during program execution. Each variable has a name that uniquely identifies it within its level of scope. A data type can be specified or not.). Each document has a collection of variables, which can be added and referenced by the Microsoft Visual Basic for Applications (Visual Basic for Applications (VBA): A macro-language version of Microsoft Visual Basic that is used to program Windows applications and is included with several Microsoft applications.) programming language. This field provides a way to display the contents of the document variables in the document.

ShowInstructions

"Name"

The name of the document variable

 Note   For more information about document variables, search for the Variables property in Visual Basic for Applications Help. If Help is not installed, run Setup again to install it.

advertisement