Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting lines from Word
Message
From
21/10/1999 12:16:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/10/1999 11:47:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00279385
Message ID:
00279421
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform