inserting text and check box in paragraph

B

bryan

I am creating a template (to replace 4 word documents) which auto populates
some info from 3 host systems. I plan on using a userform to determine which
type of letter text verbage to use. Based upon this selection, I want to
build the letter by inserting form field, text, carriage returns, and check
boxes in the body of the letter after formfield "ClientName".

Thanks,
Bryan
 
D

Doug Robbins - Word MVP

Why aren't you having the information that would be entered into the
formfield entered into the userform? and what would be the purpose of the
check box? It would probably be better to have a check box on the userform
and have whatever is to be done based on the status of that check box
performed by code in the user form.

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

bryan

What's to be inserted text on the form is determined by the selection in the
userform. One of the documents (of which I am replacing 4 with one template),
which is sent out to insured's has boxes that would be manually checked with
a pen, not electronically, and then sent back.

How do I insert text, formfields onto a form based upon a selection from the
userform.
Basically what I am asking is, how to build the form based upon a selection.

Can this be done and how?

Thanks,
Bryan
 
D

Doug Robbins - Word MVP

I think that what I would do would be to have a template for each form and
based on the selections made in the userform, I would have code create a
document for the applicable template. Each template would be already set up
with the necessary formfields with the Protection for filling in forms
already turned on so that the documents created from the templates would be
ready to use.

However, if the forms are to be filled in manually, why have the formfields
in them at all?

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

bryan

I will leave as seperate.
2 forms are basically identical except for 1 paragraph.
How can I insert the verbage for this paragraph based upon the selection
from the userform.
I would need to insert a carriage return twice and then insert text.
How can I do this?

Thanks,
Bryan
 
F

fumei via OfficeKB.com

I am not following totally, but why not have the verbiage as an AutoText?

If X is selected (on the userform) Then
insert Autotext "yadda"

If Y is selected (on the userform) Then
insert AutoText "blah"

I will leave as seperate.
2 forms are basically identical except for 1 paragraph.
How can I insert the verbage for this paragraph based upon the selection
from the userform.
I would need to insert a carriage return twice and then insert text.
How can I do this?

Thanks,
Bryan

I think that what I would do would be to have a template for each form and
based on the selections made in the userform, I would have code create a
[quoted text clipped - 44 lines]
 
B

bryan

I guess I have not worked with Auto text before but, it seems to be basically
setting the text in a formfield.
Such as:
if x then
ActiveDocument.formfield("text1").result = "Text for selection of x"
elseif y then
ActiveDocument.formfield("text1").result = "Text for selection of y"
end if

Am I correct in this assumption? I can do this but, I guess what I was
looking for was a way to insert text without using a formfield as a means.
After Dear Sir,
I want to have 2 carriage returns and then insert text.

Basically I want to build a form on the fly based upon selection from the
userform.
Is this possible and if so, How?


What I want to d

fumei via OfficeKB.com said:
I am not following totally, but why not have the verbiage as an AutoText?

If X is selected (on the userform) Then
insert Autotext "yadda"

If Y is selected (on the userform) Then
insert AutoText "blah"

I will leave as seperate.
2 forms are basically identical except for 1 paragraph.
How can I insert the verbage for this paragraph based upon the selection
from the userform.
I would need to insert a carriage return twice and then insert text.
How can I do this?

Thanks,
Bryan

I think that what I would do would be to have a template for each form and
based on the selections made in the userform, I would have code create a
[quoted text clipped - 44 lines]
Thanks,
Bryan
 

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

Top