Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2005

Tip: Looking for answers? Try searching our database.

Docvariable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Vardinghus - 24 Apr 2005 14:05 GMT
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.
Jezebel - 25 Apr 2005 04:35 GMT
You need to change the VALUE of the variable --

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

> with this I get a list of variable names
>
[quoted text clipped - 13 lines]
>
> Michael v.
Ulf Nilsson - 25 Apr 2005 08:11 GMT
Try this tool:
http://www.chriswoodman.co.uk/Shortcut%20Organizer.htm#Document%20Variables
A simple user interface allowing users to create, change and delete document
properties that were part of the document file could be used in macros and
fields.

/ Ulf

> with this I get a list of variable names
>
[quoted text clipped - 12 lines]
>
> Michael v.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.