S
Steve C
I've created a basic Word 2003 template with an opening form where users can
select any (or all) of four existing Word documents (DocA, DocB, DocC, DocD)
they want to insert into a resulting document. They use check boxes to
select what docs they want to insert, and can also indicate (using text
boxes) how many copies of each they want inserted. My existing code works
well when they click OK.
However, some users wish to insert the docs in a different order of their
choice, such as two copies of DocD first, then one of DocC, three of DocA and
perhaps none of DocB. So I created corresponding text boxes next to each Doc
in the form where they can enter the order they want to have them inserted.
My question is how to write code that handles all of the scenarios for the
order that they decide upon. For example, in the above scenario, I could
write an elaborate IF statement that compares every order number value to all
the others, but that seems like overkill. I'm thinking that a Select Case
statement would probably work best, but I need some general ideas on how to
structure it. Any help is much appreciated!
select any (or all) of four existing Word documents (DocA, DocB, DocC, DocD)
they want to insert into a resulting document. They use check boxes to
select what docs they want to insert, and can also indicate (using text
boxes) how many copies of each they want inserted. My existing code works
well when they click OK.
However, some users wish to insert the docs in a different order of their
choice, such as two copies of DocD first, then one of DocC, three of DocA and
perhaps none of DocB. So I created corresponding text boxes next to each Doc
in the form where they can enter the order they want to have them inserted.
My question is how to write code that handles all of the scenarios for the
order that they decide upon. For example, in the above scenario, I could
write an elaborate IF statement that compares every order number value to all
the others, but that seems like overkill. I'm thinking that a Select Case
statement would probably work best, but I need some general ideas on how to
structure it. Any help is much appreciated!