Club PA 2.0 has arrived! If you'd like to access some extra PA content and help support the forums, check it out at patreon.com/ClubPA
The image size limit has been raised to 1mb! Anything larger than that should be linked to. This is a HARD limit, please do not abuse it.
Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

Using multiple Merge Fields in a word doc

noir_bloodnoir_blood Registered User regular
edited July 2014 in Help / Advice Forum
Hey folks, hoping some of you more savvy Word users can help me out here.

I'm testing part of a software for work that uses the merge field option in MS Words to create templates with populated data. I'm testing that the tokens we currently have in place are all working.

Right now, this means that I open up a brand new word doc and do the following:

INSERT->QUICK PARTS->MERGEFIELD-> THE NAME OF THE TOKEN

The problem is the system has about 100 tokens, so to insert every token into the word I have to repeat that process above, and that seems like a waste of time. Even if I had to go in and type the tokens out, but not go through the whole Quick Parts->Insert first. would save me some trouble. Then I would just upload the document into our system and see what tokens fail.

So is there a way to do this?

noir_blood on

Posts

  • TofystedethTofystedeth veni, veneri, vamoosi Registered User regular
    What versions of Word do you have available to you?

    steam_sig.png
  • FiggyFiggy Registered User regular
    Use copy and paste, and toggle the field codes.

    I'm using 2010:

    Insert>QuickParts>Field>select "MergeField" from the left> enter Field Name I'll use 'red' as an example

    Show reveal codes to make this a bit easier
    • Select the text: <<red>>
    • Copy/paste a bunch of times (99 I guess)
    • Select all, right click, "Toggle Field Codes"
    • You'll now get: { MERGEFIELD red \* MERGEFORMAT }
    • You can now type the new field names where 'red' is. Maybe find/replace would make it easier as pseudo "entry box" with every time you hit 'next'.
    • Make sure that when you "Toggle Field Codes" again, you also right click and select "Update fields" to see the change you made.

    You might also find this page helpful: http://office.microsoft.com/en-ca/word-help/insert-and-format-field-codes-in-word-2010-HA101830917.aspx#BM2

    XBL : Figment3 · SteamID : Figment · Website : www.nathanswyers.com
Sign In or Register to comment.