• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

Formatting a directory in Word 2010

I am trying to format a directory in WORD 2010.  What is the best way to do this.  I would like to print the County each time there is a change in County.

(See attached spreadsheet)

I now have the document set up in columns, I don't know if this is the best way to do this.
I will be using merge fields to populate the document.  The input is on an Excel Spreadsheet.
Directory.docx
0
morinia
Asked:
morinia
1 Solution
 
Paul SauvéRetiredCommented:
I would use a table rather that columns - you will get better results with Excel.
Directory1.docx
0
 
GrahamSkanRetiredCommented:
It looks, from your document, as if you are aiming a Labels type of merge, rather than a Directory.

Grouping by one of the fields in the datasource, e.g. 'County'  is more tricky.It can be done using SET, IF and MERGESEQ fields. It would be based on a something that would look like this.

{ IF { MERGESEQ } = "1" "{ MERGEFIELD COUNTY }¶
" "" }{ SET Place1 { MERGEFIELD COUNTY }}¶
{ If { Place2 } <> { Place1 }"¶
{ MERGEFIELD COUNTY }¶

{ MERGEFIELD EMPLOYEE } { MERGEFIELD SALES }" "{ MERGEFIELD EMPLOYEE } { MERGEFIELD SALES }" }{ SET Place2 { MERGEFIELD COUNTY }}¶

This is taken from here: http://support.microsoft.com/kb/294686 where there is a fuller explanation.

I have listed this as well as some suggestions for using VBA here:
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Word/Q_23658368.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now