Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2014, 11:51 AM
sanko787 sanko787 is offline Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext Windows 7 64bit Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext Office 2010 64bit
Novice
Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext
 
Join Date: Jul 2014
Posts: 1
sanko787 is on a distinguished road
Default Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext

Hi all, this is my first ever post in the forums! Here is my situation and I hope someone can help since I have spent hours trying to figure this out. Thanks.



Here's some background info: A major component of my job is to fill in multiple forms with much redundant information. I am in the process of perfecting this process. So far I have created a database in an Excel table that allows me to pull from and reference in a mail merge. Each database is it's own project, and each row of data corresponds to a different property owner. That I have no problems with. Each form is saved and even has some conditional formatting and such.

It works well but my complaint is I have to manually select different forms based on various criteria or delete unused ones and i want to automate the process. So I have created a new template with quick parts for each of the forms saved and have put a series of conditional if statements in the mail merge document that inserts the appropriate forms. So when I scroll to the next record, it only shows me the relevant forms for that situation (Ex: record one may show forms 1, 2, and 3; while record 2 may show only form 4).

Here's the issue I run into: When testing this new mail merge template, the if statements populate the body of the each form perfectly - the formatting of the header and footer is where my issues are. Word inserts extra sections within each form without rhyme or reason which messes up page numbering, or sometimes doesn't even populate a header or footer at all. When I delete all the data on the sheet and insert whichever form I need, everything works well, but when I try and automate it, things go south. The only thing I can think of is the way I am saving the building blocks.

Sorry this is so long but I wanted to be clear and fully explain my situation. Any insight would be greatly appreciated!
Reply With Quote
  #2  
Old 07-05-2014, 09:00 PM
macropod's Avatar
macropod macropod is offline Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext Windows 7 32bit Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 apparently-random Section-break insertion probably has to do with the way you've defined the building blocks. In any event, with a mailmerge, there's no need to use them - all your variable content can be embedded directly into the IF fields, even if the result for an if field might encompass text, tables and graphics spanning more than one page.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing Building Blocks dricciuti Word 0 11-03-2013 03:40 PM
Building blocks show correctly in dropdown, but wrong building block populates in doc wordgirl123 Word 0 10-03-2013 08:30 AM
Building Blocks Organizer Neece Office 0 08-06-2011 05:14 AM
Formatting Issues When Using If Statements and Inserting Building Blocks/Autotext Building Blocks - WHY??? namedujour Word 5 05-03-2011 01:37 PM
Building blocks in 2007 derohanes Office 6 03-05-2011 01:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:45 AM.


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