Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
LurfysMa
 
Posts: n/a
Default Run-time document variables?

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
  #2   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP
 
Posts: n/a
Default Run-time document variables?

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.

--
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

"LurfysMa" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.word.newusers
LurfysMa
 
Posts: n/a
Default Run-time document variables?

On Sat, 3 Jun 2006 22:30:10 +0200, "Doug Robbins - Word MVP"
wrote:

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
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Data Question Tom Bean Mailmerge 7 May 26th 06 12:02 AM
macros and SharePoint WSS document libraries [email protected] New Users 0 October 6th 05 03:42 AM
word 2003 closes each time i close a document nicolam Microsoft Word Help 1 September 30th 05 04:35 PM
how to GLOBALLY clear tab stops in document not1lineata time mswordantiaesthetic Microsoft Word Help 4 May 17th 05 05:31 AM
word 97 - document opens every time I open word shirley Microsoft Word Help 1 January 13th 05 01:04 AM


All times are GMT +1. The time now is 12:51 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"