Docvariable

M

Michael Vardinghus

with this I get a list of variable names


For Each avar In ActiveDocument.Variables
vari(Tæller) = avar.Name
next avar

...however it looks as if there is a caption / label as well that can differ
from the name ?

A variable named KundeAdr which is displayed as code when field codes is
shown but it displays Adresse 1 when field codes are not shown. How do I
list / modify this label ?

Thankx

Michael v.
 
J

Jezebel

You need to change the VALUE of the variable --

ActiveDocument.Variables("KundeAdr") = "12 Smith Street"
 
Top