Sara,
Try
http://support.microsoft.com/?kbid=294686
This is a far better example of how it all works and a lot easier to
understand.
If you're still baffled after reading this, let me know and I'll try to
help.
Done a few of these successfully in the past myself.
Regards
Paul
> I have visited the link below to try and followed the
> method described, but it does not produce the right
[quoted text clipped - 50 lines]
>
> Sara
Sara - 12 Aug 2004 14:37 GMT
I'm sorry! It's still not working! The link below is for
Word 2002 and I am using 2000. Therefore I cannot follow
the instructions properly. For example can I make
a "directory" document type in 2000?
Any more ideas would be great!
Sara
>-----Original Message-----
>Sara,
[quoted text clipped - 55 lines]
>> http://homepage.swissonline.ch/cindymeister/MergFram.htm
>> and
http://www.knowhow.com/Guides/CompoundMerges/CompoundMerge.
>> htm
>>
[quoted text clipped - 7 lines]
>
>.
Badger - 12 Aug 2004 17:44 GMT
OK then, try http://support.microsoft.com/?kbid=211303.
Its basically the same thing but for Word 2000.
Only used Word 2000 myself and have got the 2002 version to work.
But anyway, have a look and see if it makes any more sense !
If not, send me some sample data and what you're trying to achieve and we'll
go from there.
Regards
Paul
> I'm sorry! It's still not working! The link below is for
> Word 2002 and I am using 2000. Therefore I cannot follow
[quoted text clipped - 87 lines]
> >
> >.
Try this instead on the document created by executing a catalog mailmerge
with the merge fields in the cells of a single row table with the "key"
mergefield in the first cell.
' Macro to create multiple items per condition in separate tables from a
directory type mailmerge
Dim source As Document, target As Document, scat As Range, tcat As Range
Dim data As Range, stab As Table, ttab As Table
Dim i As Long, j As Long, k As Long, n As Long
Set source = ActiveDocument
Set target = Documents.Add
Set stab = source.Tables(1)
k = stab.Columns.Count
Set ttab = target.Tables.Add(Range:=Selection.Range, numrows:=1,
numcolumns:=k - 1)
Set scat = stab.Cell(1, 1).Range
scat.End = scat.End - 1
ttab.Cell(1, 1).Range = scat
j = ttab.Rows.Count
For i = 1 To stab.Rows.Count
Set tcat = ttab.Cell(j, 1).Range
tcat.End = tcat.End - 1
Set scat = stab.Cell(i, 1).Range
scat.End = scat.End - 1
If scat <> tcat Then
ttab.Rows.Add
j = ttab.Rows.Count
ttab.Cell(j, 1).Range = scat
ttab.Cell(j, 1).Range.Paragraphs(1).PageBreakBefore = True
ttab.Rows.Add
ttab.Cell(j + 1, 1).Range.Paragraphs(1).PageBreakBefore = False
For n = 2 To k
Set data = stab.Cell(i, n).Range
data.End = data.End - 1
ttab.Cell(ttab.Rows.Count, n - 1).Range = data
Next n
Else
ttab.Rows.Add
For n = 2 To k
Set data = stab.Cell(i, n).Range
data.End = data.End - 1
ttab.Cell(ttab.Rows.Count, n - 1).Range = data
Next n
End If
Next i

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
>I have visited the link below to try and followed the
> method described, but it does not produce the right
[quoted text clipped - 50 lines]
>
> Sara