All,
This question is simple but someone can help me out
i have a checkbox and a label, when user selects the checkbox,
the caption of the checkbox (aaaaaaaaaaaaaaaaaaaaa) and label caption
(abc...etc) should be printed in the document here label caption is
spread accross 4-5 lines, how i want to see in the document is
aaaaaaaaaaaaaaaaaaaaa (checkbox caption)
abcccccccccccccccccccccccccccccccccccccccccccccc (label caption)
abcccccccccccccccccccccccccccccccccccccccccccccc
abcccccccccccccccccccccccccccccccccccccccccccccc
when i used vbtab control in the code (strbody = strbody + chkbox
caption + vbtab + label caption) the result is
aaaaaaaaaaaaaaaaaaaaa
abccccccccccccccccccccccccccccccccccccccccccccccccc
abccccccccccccccccccccccccccccccccccccccccccccccccc
abccccccccccccccccccccccccccccccccccccccccccccccccc
Pls help.
Jean-Guy Marcil - 14 Jan 2006 03:09 GMT
Srini was telling us:
Srini nous racontait que :
> All,
> This question is simple but someone can help me out
[quoted text clipped - 18 lines]
>
> Pls help.
Try this:
Prepare two different styles.
Set a range to the paragraph that will receive the checkbox caption.
Apply a style #1.
Insert checkbox caption
Set range to following paragraph.
Apply Style #2
Insert Label caption.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Chuck Henrich - 27 Jan 2006 14:57 GMT
Are you including newlines in your strings as well as tabs? eg:
strbody = strbody & vbNewLine & vbNewLine & _ 'to create a new text block
chkboxCaption & vbNewLine & vbTab & _
labelCaption & vbNewLine & vbTab & _
labelCaption & vbNewLine & vbTab & _
etc

Signature
Chuck Henrich
www.ProductivityApps.com
Stylist Style Generator - automatically create and define sets of paragraph
numbering and heading styles
> All,
> This question is simple but someone can help me out
[quoted text clipped - 18 lines]
>
> Pls help.