View Single Post
 
Old 04-04-2014, 08:37 AM
Larry Sulky Larry Sulky is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Mar 2014
Posts: 14
Larry Sulky is on a distinguished road
Default Document variable?

Would a Word document variable work for you? Document variables require VBA coding ability to discover and read. See more at http://support.microsoft.com/kb/306281, from which the following example was taken:
Code:
Sub GetSetDocVars()

   Dim fName As String
   fName = "Jeff Smith"
   ' Set contents of variable "fName" in a document using a document
   ' variable called "FullName".
   ActiveDocument.Variables.Add Name:="FullName", Value:=fName
   ' Retrieve the contents of the document variable.
   MsgBox ActiveDocument.Variables("FullName").Value

End Sub
Reply With Quote