Thread: [Solved] Multiple IF THEN ELSE form
View Single Post
 
Old 01-15-2019, 04:54 AM
VisionAvenger VisionAvenger is offline Windows 10 Office 2013
Novice
 
Join Date: Mar 2016
Posts: 16
VisionAvenger is on a distinguished road
Default

So, in this, then there's no limit (ie, Value:=fName)



Code:
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.
Reply With Quote