Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
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
Posted to microsoft.public.word.newusers
|
|||
|
|||
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
Posted to microsoft.public.word.newusers
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Mail Merge Data Question | Mailmerge | |||
macros and SharePoint WSS document libraries | New Users | |||
word 2003 closes each time i close a document | Microsoft Word Help | |||
how to GLOBALLY clear tab stops in document not1lineata time | Microsoft Word Help | |||
word 97 - document opens every time I open word | Microsoft Word Help |