Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-08-2014, 03:00 PM
macropod's Avatar
macropod macropod is offline Max length of TrueText in IF Statement? Windows 7 32bit Max length of TrueText in IF Statement? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,515
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 TRUE/FALSE statements could be as long as, say, 'War & Peace', including tables, pictures and so on. The only proviso is that double quotes can't be included in either expression (you could use pairs of single quotes instead).

When you want to insert large amounts of formatted context, it's best to ignore the dialogues and create the fields manually. You do this via Ctrl-F9 on a PC or Cmd-F9 on a Mac. What you don't need (or probably want) is the '\* MERGEFORMAT' switches. Thus, your field code could become:

{IF { MERGEFIELD Salesforce.Custom_Field__c } = "" "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricie’s, purus lectus malesuada libero, sit amet commodo magna eros quis urna.¶
Nunc viverra imperdiet enim. Fusce est. ‘‘Vivamus a tellus’’.¶
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci."}

or:

{IF «Salesforce.Custom_Field__c» = "" "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricie’s, purus lectus malesuada libero, sit amet commodo magna eros quis urna.¶
Nunc viverra imperdiet enim. Fusce est. ‘‘Vivamus a tellus’’.¶
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci."}

where the ¶ is a real real line/paragraph break. In the second example, «Salesforce.Custom_Field__c» represents the mergefield that you can still insert via the dialogues. Note that there's no need for an empty FALSE statement.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Movie Length helmerg PowerPoint 0 07-29-2013 12:23 PM
Critical Path Length ketanco Project 5 03-15-2013 01:12 PM
Max length of TrueText in IF Statement? Searching by Quotation Length cheech1981 Word 4 03-14-2013 08:23 AM
page length mzimpfer Word 2 10-23-2010 11:53 AM
How to set the same length for different lines myword29 Word 0 09-28-2007 08:12 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:46 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