Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
BillV BillV is offline
external usenet poster
 
Posts: 2
Default Conditional (IF) Field Output Paragraph Mark

I'm working with the "IF" conditional field in Word 2007. I'd like the
output to contain a paragraph mark only if the condition is met. I've failed
to locate an expression for paragraph mark that I can include in the field.

I've stored an Address and Suite Number into separate Document Properties.
If a Suite is present, I'd like that to precede Address on a separate line
like this:

123 Main St. (no suite)

or

Suite 3 (with suite)
123 Main St.

Here's the expression I've composed:

{ IF { DOCPROPERTY Suite } = "" "{ DOCPROPERTY Address}" "{ DOCPROPERTY
Suite }^p{ DOCPROPERTY Address}" }

I've inserted "^p" after the suite property. This works for Find and
Replace, but not here.

Your suggestions are very much appreciated!
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Conditional (IF) Field Output Paragraph Mark

Hi Bill,

It's as simple as hitting the Enter key where you want the paragraph mark to go!

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"BillV" wrote in message ...
I'm working with the "IF" conditional field in Word 2007. I'd like the
output to contain a paragraph mark only if the condition is met. I've failed
to locate an expression for paragraph mark that I can include in the field.

I've stored an Address and Suite Number into separate Document Properties.
If a Suite is present, I'd like that to precede Address on a separate line
like this:

123 Main St. (no suite)

or

Suite 3 (with suite)
123 Main St.

Here's the expression I've composed:

{ IF { DOCPROPERTY Suite } = "" "{ DOCPROPERTY Address}" "{ DOCPROPERTY
Suite }^p{ DOCPROPERTY Address}" }

I've inserted "^p" after the suite property. This works for Find and
Replace, but not here.

Your suggestions are very much appreciated!

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
BillV BillV is offline
external usenet poster
 
Posts: 2
Default Conditional (IF) Field Output Paragraph Mark

That did the trick. Thanks macropod!

I had actually tried this, but failed to "Update Field" when testing. It
would seem intuitive that a modified field would be updated automatically,
just as Excel updates when formulas are changed.

Bill

"macropod" wrote:

Hi Bill,

It's as simple as hitting the Enter key where you want the paragraph mark to go!

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------


  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Conditional (IF) Field Output Paragraph Mark

Hi Bill,

Few Word fields update automatically - you usually need to do something like previewing or printing the document. Alternatively, you
could use Ctrl-A then F9 to update everything in the body of the document.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"BillV" wrote in message ...
That did the trick. Thanks macropod!

I had actually tried this, but failed to "Update Field" when testing. It
would seem intuitive that a modified field would be updated automatically,
just as Excel updates when formulas are changed.

Bill

"macropod" wrote:

Hi Bill,

It's as simple as hitting the Enter key where you want the paragraph mark to go!

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
paragraph mark in labels mandy Microsoft Word Help 4 January 30th 07 02:33 PM
How do I limit text output from a merge field? jdaman1998 Mailmerge 3 January 13th 07 01:21 PM
Mark at end of paragraph lobolady Microsoft Word Help 2 May 26th 06 05:14 PM
Hiding the paragraph mark [email protected] Microsoft Word Help 3 February 2nd 06 01:26 AM
Formatting merge fields: inserting a paragraph mark before a field Justin Cascio Mailmerge 1 August 30th 05 08:18 PM


All times are GMT +1. The time now is 11:48 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"