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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top