Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2018, 02:28 PM
macropod's Avatar
macropod macropod is offline Insert page automatically Windows 7 64bit Insert page automatically Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
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 Word side of that's as simple as using an IF test and inserting the entire page's content into the True or False result, as appropriate. For example:


{IF{MERGEFIELD Condition}= "True" "Conditional text"}

Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. The spaces represented in the field constructions are all required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 08-01-2018, 06:23 AM
Glitch Glitch is offline Insert page automatically Windows 7 64bit Insert page automatically Office 2016 for Mac
Novice
Insert page automatically
 
Join Date: Jul 2018
Posts: 12
Glitch is on a distinguished road
Default

That was it!!! Thank you so much, I was unaware one could use IF functions in word. I added the Trim command to disregard any capitol letters, the end result was :
{ If {TRIM "myfield"}="Manhole" "MANHOLE DATA SHEET ..."}

Thank you again!
Reply With Quote
Reply

Tags
automatic, field, insert page



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert page automatically I need a macro to automatically insert 4 pics per page in a word document with "Photograph No 1, 2," NewbieLearning Word VBA 15 11-14-2017 05:03 AM
Insert page automatically Insert Filename automatically when open vicmar Word VBA 8 08-31-2017 02:49 AM
Automatically insert the name of the user MiniMum97 Word 1 04-12-2016 03:40 AM
Insert page automatically automatically insert an image into a document hanrattyc Word 1 05-13-2013 04:27 PM
Insert page automatically How to automatically insert DAY instead of date? kylera Word 3 06-28-2012 12:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:57 PM.


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