Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting lines from Word
Message
De
21/10/1999 12:16:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/10/1999 11:47:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00279385
Message ID:
00279421
Vues:
13
>I have a program that will use Word and bookmarks to "mail merge". My problem is, if nothing is inserted at the bookmark (i.e. field is blank) how can I delete that line in Word so there are no empty lines?
>
>For instance, I have bookmarks for name, address1(street address), address2(i.e. suite #), city, state, and zip. Address2 is empty and the blank space is inserted into the bookmark. If it's empty I don't want any space in there.
>
>Thanks in advance for your help!


with oWord.ActiveDocument
  .Bookmarks("Address").Select
  if empty(Address)
    .Application.Selection.Delete
  else
*....
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform