DOCPROPERTY field : how can I put multiple paragrahs in 1 custom p

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have created one custom property and I would like to put in a text with
multiple paragraphs to re-use it with DOCPROPERTY field.
Example :
{DOCPROPERTY myProp} to get :
Myprop first paragraph
Myprop second paragraph

I tried a lot of ways but I couldn't enter more than one paragraph in my
custom property : how can I do that ?
Thanks for your help
 
Hi =?Utf-8?B?QnJ1bm8gU2FuZ3VpbmVkZQ==?=,
I have created one custom property and I would like to put in a text with
multiple paragraphs to re-use it with DOCPROPERTY field.
Example :
{DOCPROPERTY myProp} to get :
Myprop first paragraph
Myprop second paragraph

I tried a lot of ways but I couldn't enter more than one paragraph in my
custom property : how can I do that ?
You'd need to use a macro, including a userForm, to enter the information
and write it to the document property. But note that you're limited to a
maximum of 255 characters.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Wouldn't an autotext entry/field work better for this? The autotext can be
as long as you wish.

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Define the property with a dummy value. Then switch to VBA and in the
Immediate window, type:

activedocument.CustomDocumentProperties("myProp") = "Myprop first paragraph"
& vbcr & "Myprop second paragraph"
 

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

Back
Top