Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Srini - 13 Jan 2006 21:38 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.