Perhaps it was a different jewell who posted a similar question to the
microsoft.public.word.docmanagement group on 3rd July. Part one of my
response explained why you can't use SKIPIF in this situation, and part 2
was as follows:
What you really need to make things work in this situation is a data source
that has exactly the same number of rows for every label. Easier said than
done, of course. However, one way you can create such a source is to do a
Directory (Catalog) merge to a new document, adding in rows where necessary.
Then you use that document as the data source for your label merge.
As a very simple example, suppose you have two columns of comma-delimited
data like this:
number,text
1,text1
2,text2
2,text3
3,text4
3,text5
3,text6
4,text6
4,text8
4,text9
4,text10
5,text11
and for the purposes of your merge you need 4 rows for each number, i.e.
this:
number,text
1,text1
,
,
,
2,text2
2,text3
,
,
3,text4
3,text5
3,text6
,
4,text6
4,text8
4,text9
4,text10
5,text11
,
,
,
Then you can create a Directory mail merge main document like this:
{ IF { MERGESEQ } = 1 "{ SET x -1 }{ SET count 4 }number,text
" }{ IF { MERGEFIELD number } = { x }
"{ SET count { ={ count }+1 }"
"{ IF { count } < 4 ",
" }{ IF { count } < 3 ",
" }{ IF { count } < 2 ",
" }{ SET count 1 }" }{ MERGEFIELD number },{ MERGEFIELD text }{ SET x {
MERGEFIELD number } }
Make sure there is a paragraph mark after { SET count 4 }number,text and at
the end of the following lines
"{ IF { count } < 4 ",
" }{ IF { count } < 3 ",
" }{ IF { count } < 2 ",
Also, each pair of { } must be the special field code braces that you can
insert using ctrl-F9.
Merge that to a new document and use that as the daa source for your label
merge.
If your data contains delimiter characters such as ",", """ (i.e.
double-quote) and <enter> then this will not quite be enough. You can deal
with "," by changing all the commas in the above example to tab characters.
As long as you have 63 columns of data or fewer, you can deal with
double-quote characters in your data source in a couple of ways, but the
easiest is probably
a. select the output created by the above merge
b. use Word's convert text to table function to convert the entire output
into a table
If you have <enter> in your records maybe we can discuss that...