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 / General MS Word Questions / June 2006

Tip: Looking for answers? Try searching our database.

Run-time document variables?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LurfysMa - 03 Jun 2006 18:41 GMT
Is there some way to define "variables" in a Word document that can be
changed without editing the document text?

I create a lot of legal documents. Some of them are fairly long and
complicated. They require many revisions and drafts. Something that
happens frequently is that common words need to be changed globally.

For example, appointment orders for a mediator or arbitrator could
mention either "decisions" or "recommendations". There might be dozens
or even hundreds of clauses affected.

I have created a set of document templates with a bunch of
pseudo-variables to handle this in the initial draft. I use the
notation "$varname". The variable "$calls" occurs in various clauses
such as, "The mediator's $calls must be submitted in writing within 30
days...".

When I prepare the initial draft, I do a global replace (Ctrl-h) to
replace all occurrences of "$calls" with either "decisions" or
"recommendations".

That part works perfectly. The problem occurs when the judge decides
that this mediator cannot make "decisions", but only
"recommendations". Now a global replace will not work because there
are instances of the term "decisions" that should not be changed.

What I really want is the pseudo-variable $calls back so I can replace
that.

So, it there some way to leave the variable in the document, but
assign it a value that can be changed later?

It looks like the document variable field might work, but I can't see
how to set the value. The Help seems to suggest that it can only be
done from VBA. Is that correct?

Will the document variable field do what I want?

Is there a way to set it without resorting to VBA code?

If I do have to use VBA, can someone show me a basic outline of what I
need to do? I have written a few simple macros so I sort of under
stand that.

If I set it up using VBA, are the variabes local to each document?
Global variables would be of no use.

I am using Word 2000.

Thanks

--
Running Word 2000 SP-3 on Windows 2000
Doug Robbins - Word MVP - 03 Jun 2006 21:30 GMT
In your case, the best thing might be to use a DOCPROPERTY field where ever
you want the term to appear and set the value of the Property in the
Document Properties dialog.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Is there some way to define "variables" in a Word document that can be
> changed without editing the document text?
[quoted text clipped - 49 lines]
> --
> Running Word 2000 SP-3 on Windows 2000
LurfysMa - 03 Jun 2006 22:06 GMT
>In your case, the best thing might be to use a DOCPROPERTY field where ever
>you want the term to appear and set the value of the Property in the
>Document Properties dialog.

It looks like that will work. Thanks for the tip.

--
Running Word 2000 SP-3 on Windows 2000
 
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.