Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Pip''''n Pip''''n is offline
external usenet poster
 
Posts: 9
Default Show lines of Text Based on delmited String

I have a mail merge that needs to display various lines of text based on a
field that contains a list of comma delmited product IDs. Each line
corresponds to a particular product.

Is there a way to split the field to the various IDs and loop through the
list to show the lines of text that I need?

For Example:

ProductID 1 = Product 1
ProductID 2 = Product 2
ProductID 3 = Product 3

MERGEFIELD ProductLookup contains string "1, 2"

Text in Word Document:

You have purchased the following products:
Product 1 : Description of Product
Product 2 : Description of Product
Product 3 : Description of Product

Thanks in Advance,

Pip'n
 
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
show black vertical lines in the margin where text has been amend vince Microsoft Word Help 1 January 12th 07 11:57 PM
How to . . Select all text up to a specfied string Rae Drysdale Microsoft Word Help 2 June 23rd 06 12:29 PM
type 2 lines, save, lines show up at top and bottom of page skyraider Page Layout 1 November 26th 05 03:18 PM
type 2 lines, save, lines show up at top and bottom of page skyraider Page Layout 2 November 25th 05 09:08 PM
What is a Directory Text String? Lekerul Microsoft Word Help 2 February 21st 05 03:45 PM


All times are GMT +1. The time now is 09:38 AM.

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"