NextIf

M

MilesMonkMingus

Hello All,

I'm looking for some guidence. I wish to print one to many employees for a
given company in a letter. More specifically, one letter to each
company--not one letter for each employee.

I believe nextif is one way to accomplish this. Could anyone lend an
example?
 
C

Charles Kenyon

From the Word 2003 help file on NextIf:
{ NEXTIF Expression1 Operator Expression2 }

Compares two expressions. If the comparison is true, Microsoft Word merges
the next data record (data record: A complete set of related information
that corresponds to one row of information in the data source. All
information about one client in a client mailing list is an example of a
data record.) into the current merge document. Merge fields that follow the
NEXTIF field (field: A set of codes that instructs Microsoft Word to insert
text, graphics, page numbers, and other material into a document
automatically. For example, the DATE field inserts the current date.) in the
main document (main document: In a mail-merge operation in Word, the
document that contains the text and graphics that are the same for each
version of the merged document, for example, the return address or
salutation in a form letter.) are replaced by values from the next data
record rather than the current data record. If the comparison is false, Word
merges the next data record into a new merge document.

You may find the SKIPIF field used in documents created in previous versions
of Word, but don't use the SKIPIF field in the current version of Word. You
can select data records more easily by using the Mail Merge Recipients
dialog box, which appears when you connect to a data source (data source: A
file that contains the information to be merged into a document. For
example, the list of names and addresses you want to use in a mail merge.
You must connect to the data source before you can use the information in
it.) during a mail merge.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top