Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / November 2004

Tip: Looking for answers? Try searching our database.

Extra space between mergefield name and trailing curly brace

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bunnyman - 18 Nov 2004 20:39 GMT
We've noticed a problem that seems to appear in MSW 2003 that was not there
before with merged fields.   The original authors of the word document
template manually entered the field names with curly braces.  When the
document is merged with the Excel data source there are a number of field
mismatches -- word displays many of the document fields with trailing
underscores -- indicating that it read spaces as part of the merge field name
-- is there any default way to ignore this behavior?

\jm
Bunnyman - 18 Nov 2004 22:15 GMT
All,

On further inspection it also looks as if Word is interpretting the column
headings based upon formatting in the cells.  For example, a column whose
first row has the value "Sales" then has numbers in a $##,###,###.00 format
in subsequent rows.  The first cell (with the value Sales) has the same
formatting, but this does not display -- since the value shows as text.  In
MSW2000/Excel2000 this did not matter -- in MSW2003/SP1 and Excel2003/SP1
this appears to be a problem as the merged field name when it comes across
from Excel will have any number of trailing "underscores" that appears to be
an interpretation of the cell format.  (BTW -- We get these spreadsheets and
word documents from a 3rd party -- which we then merge and send to our
clients.  We recently upgraded to 2003 and this problem (and others) began to
appear.

jm

> We've noticed a problem that seems to appear in MSW 2003 that was not there
> before with merged fields.   The original authors of the word document
[quoted text clipped - 5 lines]
>
> \jm
Doug Robbins - 19 Nov 2004 02:49 GMT
Try turning on "Confirm conversions at open" under Tools>Options>General and
then try the different connection methods that will be presented to you when
you attach the data source to the main document.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> All,
>
[quoted text clipped - 29 lines]
>>
>> \jm
Bunnyman - 19 Nov 2004 15:05 GMT
The "confirm" option handles the OLEDB vs. DDE problem -- but Word 2003 still
interprets the fields if they have formatting attached -- even if the
formatting is not relevant.  I edited the word doc and removed the extra
space (and generated underscores) from the merge fields and the closing curly
braces -- then I changed the formatting on the Excel columns for the 1st row
(the row with the "field labels") and it works fine.

Looks like 2003 interprets the formatting differently.

\jm

> Try turning on "Confirm conversions at open" under Tools>Options>General and
> then try the different connection methods that will be presented to you when
[quoted text clipped - 33 lines]
> >>
> >> \jm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.