![]() |
#8
|
||||
|
||||
![]()
I'm not sure which of the subsequent IF fields is indicated after the second red double-quote in your post. There are multiple IF statements and double-quotes used in that set of fields.
The best way to see which expressions are bound by a common field is to select the opening brace, then extend the selection forward by one character. That should cause the actual selection to expand to encompass the whole of that field and any others nested within it. As for the external QUOTE field, that's really nothing more than a container for the rest of the construction - the coding would work equally well without it. Having it, though, makes copying & pasting a given set of fields far easier. As a rule, QUOTE fields also require the use of double quotes to bound the expressions they're to output. However, you can also use unbounded numeric expressions to create some interesting effects, such as the generation of page breaks - as done in the code example I posted; there's another example in the last paragraph in the tutorial itself.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
field code, justification, tabs |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Loss of formulae values when mail merging excel to word | MellowMel | Mail Merge | 6 | 05-09-2014 09:08 AM |
Prevent Zero Values being Suppressed in a Mail Merge | HangMan | Mail Merge | 2 | 12-11-2013 02:28 PM |
![]() |
skrallemand | Word VBA | 8 | 10-02-2013 06:54 AM |
Mail Merge Duplication of address on merge | RICKY | Mail Merge | 1 | 09-26-2012 03:14 PM |
![]() |
Aude | Mail Merge | 1 | 01-06-2012 07:38 PM |