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

Re: inserting text and check box in paragraph by Doug

Doug
Tue Jun 17 12:32:30 PDT 2008

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

"bryan" <bryan@discussions.microsoft.com> wrote in message
news:E057D1BD-D59F-4374-B5E3-71251F630954@microsoft.com...
>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
>
>
>



Re: inserting text and check box in paragraph by bryan

bryan
Wed Jun 18 06:07:00 PDT 2008

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

"Doug Robbins - Word MVP" wrote:

> 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
>
> "bryan" <bryan@discussions.microsoft.com> wrote in message
> news:E057D1BD-D59F-4374-B5E3-71251F630954@microsoft.com...
> >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
> >
> >
> >
>
>
>

Re: inserting text and check box in paragraph by Doug

Doug
Thu Jun 19 04:25:07 PDT 2008

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

"bryan" <bryan@discussions.microsoft.com> wrote in message
news:DE5E2894-8CC5-4A8D-98C9-4DFBC112CECD@microsoft.com...
> 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
>
> "Doug Robbins - Word MVP" wrote:
>
>> 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
>>
>> "bryan" <bryan@discussions.microsoft.com> wrote in message
>> news:E057D1BD-D59F-4374-B5E3-71251F630954@microsoft.com...
>> >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
>> >
>> >
>> >
>>
>>
>>



Re: inserting text and check box in paragraph by bryan

bryan
Thu Jun 19 05:41:00 PDT 2008

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


"Doug Robbins - Word MVP" wrote:

> 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
>
> "bryan" <bryan@discussions.microsoft.com> wrote in message
> news:DE5E2894-8CC5-4A8D-98C9-4DFBC112CECD@microsoft.com...
> > 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
> >
> > "Doug Robbins - Word MVP" wrote:
> >
> >> 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
> >>
> >> "bryan" <bryan@discussions.microsoft.com> wrote in message
> >> news:E057D1BD-D59F-4374-B5E3-71251F630954@microsoft.com...
> >> >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
> >> >
> >> >
> >> >
> >>
> >>
> >>
>
>
>

Re: inserting text and check box in paragraph by fumei

fumei
Thu Jun 19 11:01:58 PDT 2008

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"


bryan wrote:
>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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200806/1


Re: inserting text and check box in paragraph by bryan

bryan
Fri Jun 20 05:13:00 PDT 2008

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" wrote:

> 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"
>
>
> bryan wrote:
> >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
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.aspx/word-programming/200806/1
>
>