Question for Microsoft Word Mavens. I want to create a Microsoft Word
Template or Form that generates a text file based on choices. E.g.,
allow the user to check off boxes, fill in text fields and use
pulldown menus to select choices. Based on those choices I would like
text to be generated.
I have prepared a dummy example to show you what the FORM might look
like, and what the OUTPUT might look like.
Anything in square braces is what the user choses from.
Anything not in braces is what is seen in the FORM and in the OUTPUT
generated based on the form info.
The output MUST be in the form of a text file (and not just a print
out).
Example:
{start FORM}
Name [Text field for free text]
Favorite fruit: [drop down menu choices include Apple, Banana, Orange;
default is None]
History of food allergies [Checkboxes for Yes, No, Not sure, No reply;
the latter is the default]
If food allergies is Yes, describe reaction [Text field for free
text]
Family history of obesity [Checkboxes for Yes, No, Not sure, No reply;
the latter is the default]
Past medical history:
1. Hypertension [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
2. Heart attack [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
3. Stroke [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
4. Tuberculosis [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
5. Poor Healing [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
6. Hepatitis [DropDown menu for Yes, No, Not sure, No reply; the
latter is the default]
7. Hypothyroidism [DropDown menu for Yes, No, Not sure, No reply;
the latter is the default]
Further details for past medical history [Text field for free text]
Set Choices 1-7 to "No" [Button that, when clicked, sets menu item in
previous choices 1-7 to "No"]
Recommendation: [Checkboxes for "Consultation with Dietitian",
"Consultation with Internist" and "No further intervention Needed"]
{end of form}
OUTPUT:
{start OUTPUT}
This is a patient history prepared for John Doe.
John Doe's favorite fruit is apples.
History of food allergies: Yes
Type of food allergy reaction: "Face swelled up when I ate shellfish"
History of obesity: No reply
Past Medical History:
Patient has a history of heart attack and tuberculosis.
Patient has no history of hypertension.
Patient not sure whether there is a history of stroke
Patient did not reply when asked regarding a history of poor healing,
hepatitis or hypothyroidism
Based on the selections, I recommend that we arrange a consultation
with the dietitian and the internist.
{end of OUTPUT}
As you can see, there are some "if then" decision points,
concatenation of text depending on choices, etc. I am capable of some
simple programming if I am shown or given examples that work and that
are alterable.
Payment:
No payment for simply pointing to a Microsoft help file or a book,
although comments along these lines are welcome and a tip will be
considered if help is non-trivial
$15 for pointing to a downloadable implementation of a form that can
be altered; form must implement all of the types of programming I need
$20-25 for explaining and demonstrating with VB or Word programming
how do do these things
$30-50 for a file comprising a working and alterable Microsoft Word
form that can be adapted and changed and which explains how to do so.
Please write if you have questions.
Thanks, researchers, and good luck. |