Results 1 to 12 of 12
  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Reading, Berkshire, England
    Posts
    199
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Field Mergeformat Switch

    Please - what is the purpose of the Mergeformat field, and what would happen if I got rid of it?

    Mike

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    Quote Originally Posted by mikemullett View Post
    Please - what is the purpose of the Mergeformat field, and what would happen if I got rid of it?
    Word often adds the \* MERGEFORMAT "switch" to fields you insert. This apparently forces the content of fields (whether generated, e.g., DATE) or copied (e.g., REF) to match the direct formatting you have applied to the field code, or the formatting of the underlying paragraph. Those in the know say that in most cases, you don't really need it, so if it bothers you, go ahead and delete it. If you find that the alien formatting appears in some fields in your document, you can add the switch back, and re-apply the formatting you want.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Reading, Berkshire, England
    Posts
    199
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Many thanks for quick reply - I now understand
    Mike

  4. #4
    New Lounger
    Join Date
    Oct 2015
    Location
    Austin, Texas
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mergeformat behavior

    Quote Originally Posted by jscher2000 View Post
    Word often adds the \* MERGEFORMAT "switch" to fields you insert. This apparently forces the content of fields (whether generated, e.g., DATE) or copied (e.g., REF) to match the direct formatting you have applied to the field code, or the formatting of the underlying paragraph. Those in the know say that in most cases, you don't really need it, so if it bothers you, go ahead and delete it. If you find that the alien formatting appears in some fields in your document, you can add the switch back, and re-apply the formatting you want.
    I have a document in which we use an includetext field like this {INCLUDETEXT "spec project info.docx" projheader \* MERGEFORMAT "} and what I am finding is that if the bookmarked text in "projheader" has more than 7 words (with 6 spaces) the last word of the bookmarked text and and subsequent text will not format correctly and looks like this "BASIC MATERIALS AND METHODS FOR PLUMBING WORK TG&W Engineers, Inc.". Note that starting at the word "WORK" the text is no longer bold. If I edit the bookmarked text to have less spaces all the text is formatted correctly. Other documents with less words work correctly. I have tried adding \* charformat switch and get the same result.
    Any ideas on how to fix?

  5. #5
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4,920
    Thanks
    2
    Thanked 388 Times in 319 Posts
    Have you tried deleting the \* MERGEFORMAT switch, then refreshing the field?
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  6. #6
    New Lounger
    Join Date
    Oct 2015
    Location
    Austin, Texas
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, deleting the mergeformat switch yields the same result.
    The mergeformat actually is needed because the linked text in the new location has to be a different format (smaller font size and bold).

  7. #7
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    1,999
    Thanks
    119
    Thanked 106 Times in 103 Posts
    Try substituting \* CHARFORMAT instead. Format the first word of the field code the way you want the field to display in your document.

    More references: Fields in Microsoft Word
    Charles Kyle Kenyon
    Madison, Wisconsin

  8. #8
    New Lounger
    Join Date
    Oct 2015
    Location
    Austin, Texas
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Already tried that. Formatted the first character to italics and added the switch. The text up to that same last word changes to italics but the last word is not changed.
    Last edited by Raudelh; 2015-10-16 at 10:27.

  9. #9
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4,920
    Thanks
    2
    Thanked 388 Times in 319 Posts
    You'd have a lot less trouble if the source and target documents used the same Styles - defined the same way, of course - and those Styles were used consistently.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  10. #10
    New Lounger
    Join Date
    Oct 2015
    Location
    Austin, Texas
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The formatting is dictated from outside of our office. Just seems weird that there is a word limit in an includetext.

  11. #11
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4,920
    Thanks
    2
    Thanked 388 Times in 319 Posts
    There is no meaningful limit on what can be imported via an INCLUDETEXT field (up to 512MB, actually, depending on what else you have in the target document). The formatting problems most likely stem from the misuse/abuse of Styles in the source and/or target documents.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  12. #12
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4,920
    Thanks
    2
    Thanked 388 Times in 319 Posts
    Cross-posted at: http://answers.microsoft.com/en-us/o...2-7fba8d154dee
    For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •