docvariable carriage return formating

E

Eric

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.
 

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