Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
MERGEFIELD error
How do I combine the \b and \@ switches in MERGEFIELD?
{MERGEFIELD "Date2" \@ yyyy/MM/dd} ...has the desired effect. {MERGEFIELD "Date2" \b " - "} ...has the desired effect. {MERGEFIELD "Date2" \@ yyyy/MM/dd \b " - "} ignores the \b switch. In my case I need to combine the two switches. What am I missing in the syntax? Any help appreciated. Garry Jones Sweden |
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
MERGEFIELD error
If you want the date as 2006-01-24 (as you say), you need to be using \@
yyyy-MM-dd instead of \@ yyyy/MM/dd. And you still haven't answered our questions about what you expect the \b switch to; according to the Help, it "specifies the text to be inserted before the MERGEFIELD field if the field is not blank." So I'm guessing this is what you're using to insert the second date. I think you'd have better luck using an IF field he { IF { MERGEFIELD "Date2" = "" "" "-{MERGEFIELD "Date2" \@ yyyy-MM-dd }" } -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Garry Jones" wrote in message ... How do I combine the \b and \@ switches in MERGEFIELD? {MERGEFIELD "Date2" \@ yyyy/MM/dd} ...has the desired effect. {MERGEFIELD "Date2" \b " - "} ...has the desired effect. {MERGEFIELD "Date2" \@ yyyy/MM/dd \b " - "} ignores the \b switch. In my case I need to combine the two switches. What am I missing in the syntax? Any help appreciated. Garry Jones Sweden |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
MS VB error Runtime error 160 for Word 2003? | Mailmerge | |||
error message - ntvdm.exe | Microsoft Word Help | |||
Help! I'm getting error messages too much-can't open Resume Wizard | Microsoft Word Help | |||
Table of Footnotes giving "Error! No table of figures entries found" error? | Tables | |||
Error Message: "C:\~~\~~~_virtual_file_~~~.olk Is Being Used ..." | Mailmerge |