• Field Mergeformat Switch

    Author
    Topic
    #468990

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

    Mike

    Viewing 7 reply threads
    Author
    Replies
    • #1224440

      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.

      • #1532700

        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?

    • #1224462

      Many thanks for quick reply – I now understand
      Mike

    • #1532709

      Have you tried deleting the * MERGEFORMAT switch, then refreshing the field?

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

      • #1532710

        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).

    • #1532716

      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

      • #1532727

        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.

    • #1532772

      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
      [Fmr MS MVP - Word]

    • #1533297

      The formatting is dictated from outside of our office. Just seems weird that there is a word limit in an includetext.

    • #1533373

      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
      [Fmr MS MVP - Word]

    • #1533382

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

    Viewing 7 reply threads
    Reply To: Field Mergeformat Switch

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: