Reply
 
Thread Tools Display Modes
  #1   Report Post  
Huub
 
Posts: n/a
Default Current date/time displayed

Merging Word 2003 with Excel 2003 sheet as input.

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP \@ "d MMMM yyyy"} results in "27 june 2005", but we
expect an empty field!

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP } results in "12:00 00 AM"

The field "GebdatP" is not really empty, but filled with a statement =IF(....)

This problem just occurs today without changing the original Word document,
normally these fields were as expected empty in my Word document.

Regards, Huub.

  #2   Report Post  
Huub
 
Posts: n/a
Default

Also tried to create a field like:

"{IF {MERGEFIELD GebdatP}="12:00 00 AM" "" "{MERGEFIELD GebdatP \@ "d MMMM
yyyy"}}

but that doesn't also result in a correct way.


"Huub" wrote:

Merging Word 2003 with Excel 2003 sheet as input.

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP \@ "d MMMM yyyy"} results in "27 june 2005", but we
expect an empty field!

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP } results in "12:00 00 AM"

The field "GebdatP" is not really empty, but filled with a statement =IF(....)

This problem just occurs today without changing the original Word document,
normally these fields were as expected empty in my Word document.

Regards, Huub.

  #3   Report Post  
Graham Mayor
 
Posts: n/a
Default

What result do you get?
Are you inserting the conditional fields using CTRL+F9 for the field
boundaries?
Try the inverse
{IF {MERGEFIELD GebdatP} "12:00 00 AM" "{MERGEFIELD GebdatP \@ "d MMMM
yyyy"}"}
Note the spaces and quotes.
See also the Excel data section of
http://www.gmayor.com/mail_merge_lab...th_word_xp.htm

--

Graham Mayor - Word MVP

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



Huub wrote:
Also tried to create a field like:

"{IF {MERGEFIELD GebdatP}="12:00 00 AM" "" "{MERGEFIELD GebdatP \@
"d MMMM yyyy"}}

but that doesn't also result in a correct way.


"Huub" wrote:

Merging Word 2003 with Excel 2003 sheet as input.

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP \@ "d MMMM yyyy"} results in "27 june 2005",
but we expect an empty field!

If the field "GebdatP" is empty in the Excel file the Word 2003 field
{MERGEFIELD GebdatP } results in "12:00 00 AM"

The field "GebdatP" is not really empty, but filled with a statement
=IF(....)

This problem just occurs today without changing the original Word
document, normally these fields were as expected empty in my Word
document.

Regards, Huub.



  #4   Report Post  
Huub
 
Posts: n/a
Default

Thanks Graham, this works!!!!

"Graham Mayor" wrote:

What result do you get?
Are you inserting the conditional fields using CTRL+F9 for the field
boundaries?
Try the inverse
{IF {MERGEFIELD GebdatP} "12:00 00 AM" "{MERGEFIELD GebdatP \@ "d MMMM
yyyy"}"}
Note the spaces and quotes.
See also the Excel data section of
http://www.gmayor.com/mail_merge_lab...th_word_xp.htm

--

Graham Mayor - Word MVP

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


  #5   Report Post  
Graham Mayor
 
Posts: n/a
Default

You are welcome

--

Graham Mayor - Word MVP

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


Huub wrote:
Thanks Graham, this works!!!!

"Graham Mayor" wrote:

What result do you get?
Are you inserting the conditional fields using CTRL+F9 for the field
boundaries?
Try the inverse
{IF {MERGEFIELD GebdatP} "12:00 00 AM" "{MERGEFIELD GebdatP \@
"d MMMM yyyy"}"}
Note the spaces and quotes.
See also the Excel data section of
http://www.gmayor.com/mail_merge_lab...th_word_xp.htm

--

Graham Mayor - Word MVP

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



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
Printing a current page in MS Word Trudy Microsoft Word Help 3 July 25th 08 10:13 PM
Add "The Current Resident" at top of labels created from Access Add/Append Current Resident to Labels Mailmerge 1 June 1st 05 08:26 PM
check current mailmerge field against previous a Mailmerge 2 March 27th 05 08:46 PM
word should let me change the page layout of the current page onl. Shitiz Bansal Microsoft Word Help 1 February 17th 05 06:09 AM
Font name not displayed in menu Pilgrim New Users 0 November 28th 04 07:27 PM


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