View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Word Mail Merge / Forms - inserting "and" before the last itemin a list in a sentence.

How will you know whether or not to include/exclude a name in any given
sentence?


Peter Jamieson

http://tips.pjmsn.me.uk

On 28/01/2010 20:36, Larry Cortez wrote:
I have created a Microsoft Word form in which users will imput names into NameField1, NameField2, ... NameField6. The input will be used to populate the non-form part of the document in sentences. The some sentences will use all of the names, some will use only some or one name. For instance a sentence may end,

..... Name1, Name2, Name3, Name4, Name5, and Name6.

Another may end,

..... Name1, Name3, Name4, and Name5.

My problem is that I cannot figure out how to programatically cause the "and" to fall before the last NameX in the list.

Any thoughts on how to accomplish this will be appreciated!

Larry


Submitted via EggHeadCafe - Software Developer Portal of Choice
New Idea to Convert DataReader to DataTable
http://www.eggheadcafe.com/tutorials...ert-datar.aspx