LIT
11-19-2011, 11:02 AM
word 2010
In VBA I have set up the following variable:
Dim vTest As String
vTest = "testing"
ActiveDocument.Variables.Add Name:="test1", Value:=vTest
using the "Quick Parts" I have added a docVariable field called "test1" but nothing returns. when I hit alt+F9 the following is returned: {DOCVARIABLE test1 \*MERGEFORMAT}
Can someone help with what I am doing wrong and why this isn't returning my "testing" string? Thank you for your time.
In VBA I have set up the following variable:
Dim vTest As String
vTest = "testing"
ActiveDocument.Variables.Add Name:="test1", Value:=vTest
using the "Quick Parts" I have added a docVariable field called "test1" but nothing returns. when I hit alt+F9 the following is returned: {DOCVARIABLE test1 \*MERGEFORMAT}
Can someone help with what I am doing wrong and why this isn't returning my "testing" string? Thank you for your time.