Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2015, 05:18 PM
anakaine anakaine is offline Include header and footer formatting when using IF conditional includes of separate documents Windows 7 64bit Include header and footer formatting when using IF conditional includes of separate documents Office 2010 64bit
Novice
Include header and footer formatting when using IF conditional includes of separate documents
 
Join Date: Nov 2015
Posts: 2
anakaine is on a distinguished road
Default Include header and footer formatting when using IF conditional includes of separate documents

Hi all, first time post, long time searcher.

I've got a problem I have only been able to find partial solutions to so far.

I have an excel matrix that includes many rows of people. Columns in this matrix define whether they should be presented with signoff paperwork for various things. There's about 40 document possibilities, with more coming, and there's well over 100 people. New people are added, and currently the process involves someone adding an individuals info to every document, then printing it.

With this logic the workers requirements are formalised in a matrix, and the master document looks at the matrix, pulls out only those relevant documents and presents them as a mailmerge product



Currently my code looks like:

Code:
{ IF = { MERGEFIELD Supervisor } = "Yes" "{INCLUDETEXT "S:\\pathtodocuments\\Supervisor.docx" }" }

{ IF = { MERGEFIELD Worker } = "Yes" "{INCLUDETEXT "S:\\pathtodocuments\\Worker.docx" }" }

{ IF = { MERGEFIELD Supervisor } = "Yes" "{INCLUDETEXT "S:\\pathtodocuments\\Robot.docx" }" }
The question(s) I have, however, are:

Each 'child' document includes header and footer information. The document name is actually kept in the header and thus is necessary to keep (also because these documents are designed to a consistent corporate standard). Using the current method header and footer informaiton is lost, though the rest of the document remains intact. How can I keep the header and footer (even using a different method?)

The other, rather small point: is there a way I can force a section break between each document that is included? Ie not between each IF statement, but rather between each document that is included via the IF criteria?

Thanks
Reply With Quote
  #2  
Old 11-06-2015, 06:19 PM
macropod's Avatar
macropod macropod is offline Include header and footer formatting when using IF conditional includes of separate documents Windows 7 64bit Include header and footer formatting when using IF conditional includes of separate documents Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The simple solution is to insert a Section break after the content of each 'child' document, unlink that Section's header from the one preceding it, then delete the new Section's header. Do likewise for the mailmerge main document before your first INCLUDETEXT field.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-06-2015, 09:45 PM
anakaine anakaine is offline Include header and footer formatting when using IF conditional includes of separate documents Windows 7 64bit Include header and footer formatting when using IF conditional includes of separate documents Office 2010 64bit
Novice
Include header and footer formatting when using IF conditional includes of separate documents
 
Join Date: Nov 2015
Posts: 2
anakaine is on a distinguished road
Default

Thanks Paul, I'll try that and see how I go.

Should "the section break after the content each child document" be in the child document itself, or in the mail merge main document?
Reply With Quote
  #4  
Old 11-06-2015, 09:51 PM
macropod's Avatar
macropod macropod is offline Include header and footer formatting when using IF conditional includes of separate documents Windows 7 64bit Include header and footer formatting when using IF conditional includes of separate documents Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Yes, you insert the Section break after the content in each 'child' document, unlink that Section's header from the one preceding it, then delete the new Section's header.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Header / Footer for ALL documents Abri Word 3 08-13-2015 04:40 AM
Header and footer aligned in the footer area ashiqghfr Word 2 07-23-2015 01:14 AM
Include header and footer formatting when using IF conditional includes of separate documents Can't remove header & footer formatting ... frangipan Word 2 07-11-2014 12:27 PM
include heading text in header eNGiNe Word 2 03-06-2013 12:24 AM
header/footer problems only in certain documents Endzone Word 5 08-15-2012 01:04 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft