Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2014, 12:13 AM
macropod's Avatar
macropod macropod is offline Inserting table Windows 7 32bit Inserting table Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,526
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Instead of that approach, what you need is something along the lines of:

Client Name: «Given_Name»«Family_Name»
{IF«Brother1» <> "" "Brother's name | Brother's Age
|«Brother1» | «Age1»|"}
{IF«Brother2» <> "" "|«Brother2» | «Age2»|"}
{IF«Brother3» <> "" "|«Brother3» | «Age3»|"}

where:
{IF«Brother1» <> "" "Brother's name | Brother's Age
|«Brother1» | «Age1»|"}
represents both the heading row and the first data row, followed by separate 1-row tables for each of:
{IF«Brother2» <> "" "|«Brother2» | «Age2»|"}
and
{IF«Brother3» <> "" "|«Brother3» | «Age3»|"}
and so on, up to the maximum number of rows needed. This will leave an empty paragraph between each row, but formatting can be used to minimise its appearance.

The alternative is to use as many separate complete tables as you need, embedded in nested fields like:

Client Name: «Given_Name»«Family_Name»


{IF«Brother3» <> "" "Brother's name | Brother's Age
|«Brother1» | «Age1»|
|«Brother2» | «Age2»|
|«Brother3» | «Age3»|" {IF«Brother2» <> "" "Brother's name | Brother's Age
|«Brother1» | «Age1»|
|«Brother2» | «Age2»|" {IF«Brother1» <> "" "Brother's name | Brother's Age
|«Brother1» | «Age1»|"}}}
In this case, there are three embedded tables.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting table Inserting Images/Pictures into Table of Content Simon Word 11 09-12-2016 11:37 PM
Inserting table Inserting landscape Table into Portrait Document sstark Word Tables 2 02-13-2013 08:43 AM
Inserting table Inserting a date calculated from a table cell theMikeD Word 2 09-11-2012 05:46 PM
Inserting a table Katelyn Outlook 0 04-05-2012 09:39 AM
inserting a string of data into an MS Word table??? matto Word VBA 0 07-16-2010 09:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft