Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kevin D. Kevin D. is offline
external usenet poster
 
Posts: 2
Default Merge with Excel Data

I'm doing a merge with data in an excel file to a Word letter. The Excel
file has 3 columns with numbers formatted as numbers with a (,) separator.
When the merged data appears in the Word file, one of the numbers appears
with the comma and the other two do not.

Is there any way to get the merged data in the Word file to hold to their
original foratting properties in the Excel file, so the comma will appear in
all?

Thanks,

Kevin D.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Merge with Excel Data

The most reliable method is to use a formatting switch - see
http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kevin D. wrote:
I'm doing a merge with data in an excel file to a Word letter. The
Excel file has 3 columns with numbers formatted as numbers with a (,)
separator. When the merged data appears in the Word file, one of the
numbers appears with the comma and the other two do not.

Is there any way to get the merged data in the Word file to hold to
their original foratting properties in the Excel file, so the comma
will appear in all?

Thanks,

Kevin D.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Kevin D. Kevin D. is offline
external usenet poster
 
Posts: 2
Default Merge with Excel Data

Graham,

Thanks for the quick reply. I added a field switch of # "$#,###" to the
merge field and this seems to have done the trick. One other question....
Is there a way to get the numbers left justified to the dollar sign so the
result appears like this $90 as oppose to this $ 90 where the merged number
is less than 1,000

Thanks.

Kevin D.

"Graham Mayor" wrote:

The most reliable method is to use a formatting switch - see
http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kevin D. wrote:
I'm doing a merge with data in an excel file to a Word letter. The
Excel file has 3 columns with numbers formatted as numbers with a (,)
separator. When the merged data appears in the Word file, one of the
numbers appears with the comma and the other two do not.

Is there any way to get the merged data in the Word file to hold to
their original foratting properties in the Excel file, so the comma
will appear in all?

Thanks,

Kevin D.




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Merge with Excel Data

You should be able to do it by using an If...then...Else field construction
that tests to see if the number is greater than 999 and applies the
appropriate formatting switch depending upon the result.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Kevin D." wrote in message
...
Graham,

Thanks for the quick reply. I added a field switch of # "$#,###" to the
merge field and this seems to have done the trick. One other question....
Is there a way to get the numbers left justified to the dollar sign so the
result appears like this $90 as oppose to this $ 90 where the merged
number
is less than 1,000

Thanks.

Kevin D.

"Graham Mayor" wrote:

The most reliable method is to use a formatting switch - see
http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kevin D. wrote:
I'm doing a merge with data in an excel file to a Word letter. The
Excel file has 3 columns with numbers formatted as numbers with a (,)
separator. When the merged data appears in the Word file, one of the
numbers appears with the comma and the other two do not.

Is there any way to get the merged data in the Word file to hold to
their original foratting properties in the Excel file, so the comma
will appear in all?

Thanks,

Kevin D.






  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Merge with Excel Data

For whole numbers the switch should be
\# "$,#"
or
\# "$,0"
as shown on my web site linked in my earlier post - where you will find also
the switches for decimal currency amounts.


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kevin D. wrote:
Graham,

Thanks for the quick reply. I added a field switch of # "$#,###" to
the merge field and this seems to have done the trick. One other
question.... Is there a way to get the numbers left justified to the
dollar sign so the result appears like this $90 as oppose to this $
90 where the merged number is less than 1,000

Thanks.

Kevin D.

"Graham Mayor" wrote:

The most reliable method is to use a formatting switch - see
http://www.gmayor.com/formatting_word_fields.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Kevin D. wrote:
I'm doing a merge with data in an excel file to a Word letter. The
Excel file has 3 columns with numbers formatted as numbers with a
(,) separator. When the merged data appears in the Word file, one
of the numbers appears with the comma and the other two do not.

Is there any way to get the merged data in the Word file to hold to
their original foratting properties in the Excel file, so the comma
will appear in all?

Thanks,

Kevin D.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail merge labels with Word 2003 and Excel 2003 Data lost data CT Mailmerge 2 January 24th 07 02:24 PM
Can't get Word 2003 to keep data file with mail merge main documen Yourcareercoach Mailmerge 9 August 10th 06 12:19 PM
Mail Merge using an Excel spreadsheet as a data source SharronTucker Microsoft Word Help 2 June 24th 05 06:11 PM
Specific Email Merge w/ Specific Attachements Mark B Mailmerge 9 February 21st 05 05:10 AM
Mail Merge Issue With Office 97 - Excel Data Source Matt Thorley Mailmerge 1 February 15th 05 11:38 PM


All times are GMT +1. The time now is 07:59 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"