J
jazzaus
I am building a custom document building routine.
My plan is to present a form to the user where they select several
variables. From these selections the code can determine the contents of the
document that is to be created.
The parts of the main document will be large sections of text relevant to
the subject. I thought that I could either use 1 big document with sections
having the sections tagged with the variable values so that I could get the
entire sections needed into a new document. Another option would be to have
separate documents for each of the sections and have the documents tagged
with the variables. I then could compile the main document from all of the
other documents with successive insert file commands.
Having 1 big document would be an advantage because I would not have to
worry about the network location of subdocuments.
I am kind of hung up on the tagging issue. What methods do you know of that
give some custom attribute values that can be stored with a section or with a
document that I could retrieve via VBA to determine with sections/documents I
need to get to compile the new master document?
An example might be variable 1 can have a value of a or b, variable 2 can
have a value of blue or green.
When a user selects variable 1 as "a" and variable 2 as "green" I need to
add documents one and six and eight.
When a user selects variable 1 as "a" and variable 2 as blue I need to add
documents two, four and eight together to make the new master document.
The more variables that get added the more combinations will exist but each
subsection or subdocument will have the variables filled out. Document one
may have a variable 1 value of "a" while document eight may have a variable 1
value of "a" AND "b" so that it will be included no matter what variable 1 is.
Any suggestions are welcome.
Thanks,
Joel
My plan is to present a form to the user where they select several
variables. From these selections the code can determine the contents of the
document that is to be created.
The parts of the main document will be large sections of text relevant to
the subject. I thought that I could either use 1 big document with sections
having the sections tagged with the variable values so that I could get the
entire sections needed into a new document. Another option would be to have
separate documents for each of the sections and have the documents tagged
with the variables. I then could compile the main document from all of the
other documents with successive insert file commands.
Having 1 big document would be an advantage because I would not have to
worry about the network location of subdocuments.
I am kind of hung up on the tagging issue. What methods do you know of that
give some custom attribute values that can be stored with a section or with a
document that I could retrieve via VBA to determine with sections/documents I
need to get to compile the new master document?
An example might be variable 1 can have a value of a or b, variable 2 can
have a value of blue or green.
When a user selects variable 1 as "a" and variable 2 as "green" I need to
add documents one and six and eight.
When a user selects variable 1 as "a" and variable 2 as blue I need to add
documents two, four and eight together to make the new master document.
The more variables that get added the more combinations will exist but each
subsection or subdocument will have the variables filled out. Document one
may have a variable 1 value of "a" while document eight may have a variable 1
value of "a" AND "b" so that it will be included no matter what variable 1 is.
Any suggestions are welcome.
Thanks,
Joel