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

Perfect! Thanks for helping me again!!
"In three words I can sum up everything I've learned about life : it goes on." - R. Frost

Amanda Brown
Supervisor/Programmer
Previous
Reply
Map
View

Click here to load this message in the networking platform