DOCVARIABLES + BLANK

J

JJ

OS - XP Prof SP2, Office 2003.
I have a VBA form where people choose how many people are party to an
agreement. If they select 2 then it must prompt twice for the 1st
Party name and 1st Party ID or Registration Number and prompt again
for 2nd Party and 2nd Party ID or Registration Number. If they choose
3 parties then it must prompt three times and assign to all different
variables. Then I have a word template which I would like to program
saying {DOCVARIABLE 1stParty} to insert the 1st party name, then
{DOCVARIABLE 1stPartyRegNo} the word "and" {DOCVARIABLE 2ndParty} to
insert the 2nd party name, then {DOCVARIABLE 2ndPartyRegNo}. However
if you have 3 parties it must do {DOCVARIABLE 1stPartyRegNo} to hard
returns (blank spaces) {DOCVARIABLE 2ndParty} to insert the 2nd party
name, then {DOCVARIABLE 2ndPartyRegNo} then the word "and" and
{DOCVARIABLE 3rdParty} {DOCVARIABLE 3rdPartyRegNo}. I know how to do
the form but I have no clue as to how to program the document for it
to know when to use 2 parties or when to use 3 parties. I thought of
something like "if docvariable parties = 2 then docvariable 1st Party,
docvariable 2nd party and docvariable 3rd party" but somehow I am not
managing to get the programming in the word template to understand my
commands. Unless I assign the whole toot to one variable and only
insert the one variable in my document. Any assistance or ideas will
be appreciated.
 
D

Doug Robbins - Word MVP

Just what type of form are you talking about? It will be easier to give you
pertinent advice if you tell us that.

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

JJ

Just what type of form are you talking about? It will be easier to give you
pertinent advice if you tell us that.

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






- Show quoted text -

I am talking about a VBA Userform where I have inserted a text box
where people enter "2" or "3" or "4" or how every many parties they
will have to the agreement. When they choose "2" then it will prompt
for two names. When they type a "3" it must prompt three times for the
names of the party.
 

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

Similar Threads

DOCVARIABLES + BLANK 0
DOCUMENT VARIABLES 3
Mail Merge w/Docvariables 3
DocVariables 1
DocVariable wont work 9
DocVaraible in Footer Issue 5
Insert Line In DocVariable 1
bookmarks with docvariables 4

Top