Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] GastonFranzini@gmail.com is offline
external usenet poster
 
Posts: 15
Default \# Not Working

Thanks Macropod,
I've read that solution on another post and tried it. I had problems
connecting with DDE.
The solution I found was to change the regional settings. Now I have to
get used to the date format mm/dd/yyyy for all the other applications.
In other PC's I can't make it work without changing the regional
config.
Thanks
Gastón


macropod ha escrito:

Hi Gaston,

The problem here seems to be that the mailmerge data are being transferred
in Excel's native format, rather than with the formatting that you applied
there. You can preserve the source data's formatting by using Dynamic Data
Exchange (DDE).

To choose the DDE data transfer method when you're connecting to an Excel
worksheet during a mail merge, all you have to do is select one check box in
Word:
1. On the Word Tools menu, click Options, and then click the General tab.
2. Click Confirm conversion at Open.

At the step in the mail-merge process where you connect to your data file,
after you locate the file you want to connect to, the Confirm Data Source
dialog box opens. Click "Application via DDE (*.???)", and then click OK. In
the Application dialog box, select the table/range that contains the
information you want to merge, and then click OK. The data will now be
formatted the same in your merged documents as they look in the source file.

Alternatively, you can code mailmerge fields with the appropriate formulae
and numeric/picture switches.

For 'Total_Fijo_Mensual ', all you'd need to do is add a picture switch to
the field, thus:
{MERGEFIELD Total_Fijo_Mensual \# ,0}
This will round off each amount to the nearest whole number. You may want to
do this anyway if your Excel data are formatted to show the decimal values,
but you don't want to show them in your mailmerge or alter your source file.

For 'Fecha_Ult_Increm', the numers you're seeing are the serial values Excel
uses for dates. To fix this you could download my Date Calc 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=249902
and adapt the field coding under the heading 'Importing Date and Time Values
From Excel and Access' to suit, by changing the 'ImportValue' string to
'MERGEFIELD Fecha_Ult_Increm' and modifying the date & time switch.

Personally, I'd recommend using the DDE connection.

Cheers

--
macropod
[MVP - Microsoft Word]


wrote in message
oups.com...
Without the switches I get,

{MERGEFIELD Total_Fijo_Mensual} 4389.44 ( I want no decimal places)

{MERGEFIELD Fecha_Ult_Increm} 38078

Thanks


What do
{MERGEFIELD Total_Fijo_Mensual}
and.....
{MERGEFIELD Fecha_Ult_Increm}
produce without the switches?

--

Graham Mayor - Word MVP

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



wrote:
It's still not working. I've read your page, very good source.
neither of them are working Don't know what to do, I've updated the
values with F9 save it and opened it again.
I've tried this... ({MERGEFIELD "Total_Fijo_Mensual"\# "##.000}
and..... {MERGEFIELD Fecha_Ult_Increm \@ "dd/MM/yy"}
Don`t know what to do..
Thanks fotr your help




Graham Mayor ha escrito:

Try {MERGEFIELD Total_Fijo_Mensual \# "##.000"} (was that supposed
to be three decimal places?)
and {MERGEFIELD Fecha_Ult_Increm \@ "dd/MM/yy"}
and make sure the quotes are plain quotes and not smart quotes.
Having made the changes, update the fields
See also
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



wrote:
Sorry Macropod...

{MERGEFIELD "Total_Fijo_Mensual"\###.###}
{MERGEFIELD "Fecha_Ult_Increm"\@dd/mm/yy}

None is working.
Thanks for your help.
Gastsn




macropod ha escrito:

Hello Gaston,

Insufficient information! Please post samples of the mergefields
using these switches.

Cheers

--
macropod
[MVP - Microsoft Word]


wrote in message
ups.com...
Dear all,
I have a problem, a big one.
I`m trying to format mergefields and \# is not working, I`ve tried
everything... also \@ is not working.
I have Office 2003 SP1 in Spanish.
Thanks in advance





 
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
When TrackChanges is ON, Spell Checker is NOT working properly Rose Microsoft Word Help 0 October 9th 06 07:13 AM
Spell checking is not working properly when Track Changes is on TrackChangesProb Microsoft Word Help 2 October 3rd 06 02:35 PM
Text to speech not working in Word 2003 Tom Johnson Microsoft Word Help 0 June 6th 06 05:18 PM
Mailmerge stoped working! ross Mailmerge 2 March 3rd 06 11:18 AM
CPU Usage When Working with Templates you created KM1 Microsoft Word Help 3 May 21st 05 11:57 PM


All times are GMT +1. The time now is 01:34 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"