Consulting

Results 1 to 7 of 7

Thread: Numbers don't merge right in Word 2010

  1. #1
    VBAX Newbie
    Joined
    Apr 2012
    Posts
    2
    Location

    Post Numbers don't merge right in Word 2010

    I have my mail merge data coming from an excel speadsheet. When I merge the data, my number values do not come across formatted correctly. In Excel, they have the format structure "$111,111.00" but in Word the same number comes across as 111111.

    I have tried DDE but still brings the numbers over unformatted.

    Please assist.

  2. #2
    VBAX Master
    Joined
    Feb 2011
    Posts
    1,480
    Location
    I would reformat your excel sheet, if possible. That's the easiest way to do it. Insert a new column, make sure the columns numberformat property is "Text", and then use a function to hard code the dollar signs. A function like =DOLLAR(A1) and then autofill it down would probably do it.

  3. #3
    VBAX Master
    Joined
    Feb 2011
    Posts
    1,480
    Location
    Alternatively, if you can't change the source... there are field codes that can reformat the mail merge result, but I think it's easier to change your source data than to deal with nested fields in a mail merge. I'm not that familiar with them, but maybe someone else is.

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,837
    Location
    This might work. In the merge document, add the \# number format switch

    [vba]
    MERGEFIELD Title \# $#,##0.00
    [/VBA]
    I didn't have any realistic data to really test it, but it worked in a mailing list I had laying around
    Paul

  5. #5
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Cross-posted (and answered) at: http://www.tek-tips.com/viewthread.cfm?qid=1684885
    For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  6. #6
    VBAX Master
    Joined
    Feb 2011
    Posts
    1,480
    Location
    Gah... the 1 post cross-poster strikes again.

    Thanks, Paul.

    That would be a great addition to the board. Any new users, when posting their first post, get a screen giving a quick run-down on cross-posting etiquette.

  7. #7
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    Cheers
    Paul Edstein
    [Fmr 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
  •