Thanks a lot once more.
We seem to be talking at cross purposes
I am very sorry that my English is so poor. Another problem is that I cannot
use English versions of Windows and MS Office so when I want to describe
anything I have to translate it into English.
From what you have posted earlier, your merge document has five pages (not thousands), some of which will not be required
according to the dictates of the data.
Right.
I'll have thousands of pages as a result of Mailmerge because the Excel file contains
thousends (or at least hundreds) of records.
You have said that you have a field in the data source which indicates which page will not be required for a given record. Right.
Save each of the five pages as a separate document and note the filename and path.
Done.
Each page contains a table. Besides, fieldnames are rather long so each "source" takes
more than 1 page in fact. If it is necessary I could shorten the names of the fields (=names
of Excel columns)
{IF {Mergefield Indicatorfieldname} <> "\" "{Includetext "c:\\path\\page1.doc" ""}{IF {Mergefield Indicatorfieldname} <> "\"
"{Includetext "c:\\path\\page2.doc" ""}{IF {Mergefield Indicatorfieldname} <> "\" "{Includetext "c:\\path\\page2.doc" ""}etc
I opened a new Word97 file and then use:
Tools > MailMerge
1. Create > Form Letters > Active Window
2. Get Data > Open Data Source
I opened my Excel file.
Then I clicked on the Edit Main Document button.
I typed what you wrote using CTRL+F9 (I forgot about it when I tried before).
To get Mergefileld Indicatorfieldname I selected it from the Insert Merge Field (left up corner)
The paths use double slashes and the names of the files are correct.
Afterwards I use:
Tools > MailMerge
3. Merge button
The following options were selected:
Merge to a New Document
Records to be saved All
Without printing empty records
Then I clicked on Merge
I got the following warning:
Microsoft Word
You cannot insert the fields DATA, NEXT, NEXTIF or SKIPIF
inside other fields (this is my translation)
and after clicking on OK I got the following information:
MailMerge
An error was encountered when counting a value of field in record 1
(this is also my tranaslation)
After clicking OK I got just 1 empty page (without inserted values) - the first from 5 pages.
Unless the first page of your merge document runs top more than one page, there will only be one page in the merge document -
unless the conditions require that the includetext fields include them.
I am very sorry but I don't understand it. I suppose it is about what I got but
I have language problems with understanding it. Could you please write it
more simple, without using the word "unless" which is very difficult to me when
I have to understand anything precisely. Sorry.
Best regards
Tico