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 / Mailmerge and Fax / March 2007

Tip: Looking for answers? Try searching our database.

docvariables carriage return formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 02 Mar 2007 00:43 GMT
I have asked this elsewhere without a response so try my luck here

Dependant on an attached userform selection and associated vba code I use a
carriage return (vbcr or chr(13)) in docvariables to build a sucession of
paragraphs. Each docvariables have a condition according to its value. When
true the value is to appear and when false nothing is to appear including
spaces and line feeds.

sample
{IF{DOCVARIABLE  Para1} = "??" "" {DOCVARIABLE  Para1}}{IF {DOCVARIABLE  
Para2} = "??" "" {DOCVARIABLE  Para2}}{IF{DOCVARIABLE  Para3} = "??" ""
{DOCVARIABLE  Para3}}{IF {DOCVARIABLE  Para4} = "??" "" {DOCVARIABLE  Para4}}

Para1.value = "text" & vbcr or "??". "??" being a default value, alternate
to the error generated by an empty string

At this point it all works fine.

Now if I apply bullets and numbering to this and the carriage return in the
docvariables does not continue to apply the formating. Think I understand why
but all my effort have prooved in vain to resolve it, in that each new
paragraph is to be formated.

There is also a requirement for simplicity with the solution as lesser
mortals will be required to carry out basic maintnance in the future.

Has anyone got any thoughts.
Graham Mayor - 02 Mar 2007 10:18 GMT
Just a thought - have you tried a \*charformat switch on the inserted
fields?

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I have asked this elsewhere without a response so try my luck here
>
[quoted text clipped - 24 lines]
>
> Has anyone got any thoughts.
Eric - 02 Mar 2007 22:40 GMT
Graham

Yes I have.
I didnt include it in the example that I presented for simplicity reasons.
My feeling is that word is not treating my carriage return as a end of
paragrah.

I think I might have to research autonum and seq. My earlier efforts with
these didnt seem to give me the desired result.

I have to admit the use of these fields is not the norm for me and I am
learning new experiences here.
 
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.