Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
UCHelp UCHelp is offline
Junior Member
 
Posts: 5
Default Automatically delete a line if nothing on it??

Hey guys,
Is it possible to have MS Word automatically check a line for characters and then delete that line if no characters are found on it (except the null / space bar character obviously)?

I am using a Word XML 2003 document to import data and concatenate the finished product into a word doc for mailing to customers.

For example, if I'm importing this:

{!contact.firstname;}
{!contact.lastname;}
{!contact.title;}

and the database I'm using only contains data for the firstname and title (doesn't have his last name) of the person, then I'd want it to print this:

John
Technical Production Assistant

NOT this:

John

Technical Production Assistant




So is there some special syntax or command I can put after the importing element of each line (in the word 2003 xml file), so it will delete that line if there are no real characters that are merged to it in the final .doc file?

?

Last edited by UCHelp : April 9th 10 at 04:25 PM
 
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
How can I delete line across page? Normal delete doesn't touch it. MG Page Layout 9 September 2nd 09 05:12 AM
Word is adding a horizontal line automatically and I cannot delete Debbie Microsoft Word Help 1 June 6th 07 10:23 PM
How do I automatically delete a line between all the paragraphs? Melissa B. Page Layout 1 July 15th 06 12:57 AM
How to delete a line created by equal signs? It won't delete from dial911book Microsoft Word Help 4 April 25th 05 01:17 PM
Why did "delete" key discontinue to delete a selected word, line . Walter Microsoft Word Help 1 March 2nd 05 08:56 PM


All times are GMT +1. The time now is 11:24 AM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"