View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default {If } doesn't work

It might work better with the slashes the right way round?

--

Graham Mayor - Word MVP

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


Stefan Blom wrote:
Try this:

{ IF { SAVEDATE \# "0" } = 0 "{ CREATEDATE /@ "ddMMMMyyyy" }" "{
SAVEDATE /@ "ddMMMMyyyy" }" }


I am trying to create a date field which inserts the CreateDate or
where applicable the SaveDate. This is to avoid having new docs from
templates opening with zeros and 'x's prior to saving, which happens
if there's a savedate.

I have put this into a field but it will not work.

{ IF { SAVEDATE } { CREATEDATE } { SAVEDATE /@ "ddMMMMyyyy" }
{CREATEDATE /@ "ddMMMMyyyy" } }

Using Office 2007 and Vista.

Thanks!