#1   Report Post  
Posted to microsoft.public.word.docmanagement
Deejay Deejay is offline
external usenet poster
 
Posts: 52
Default {If } doesn't work

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!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default {If } doesn't work

Try this:

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

--
Stefan Blom
Microsoft Word MVP


"Deejay" wrote:

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!

  #3   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

You will need switches(and the slashes the right way round) to make this
work

{IF {Savedate \@ "yyyyMMdd"} {Createdate \@ "yyyyMMdd"} "{Savedate \@
"ddMMMMyyyy"}" "{Createdate \@ "ddMMMMyyyy"}"}

See 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


Deejay wrote:
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!



  #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!



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default {If } doesn't work

Of course! Thanks for noticing.

--
Stefan Blom
Microsoft Word MVP


"Graham Mayor" wrote in message
...
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!








  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Deejay Deejay is offline
external usenet poster
 
Posts: 52
Default {If } doesn't work

Thank you both. Graham's code returns "SAVEDATE" while Stefan's (with the
right switches) returns 'Error! Too many picture switches defined'

"Graham Mayor" wrote:

You will need switches(and the slashes the right way round) to make this
work

{IF {Savedate \@ "yyyyMMdd"} {Createdate \@ "yyyyMMdd"} "{Savedate \@
"ddMMMMyyyy"}" "{Createdate \@ "ddMMMMyyyy"}"}

See 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


Deejay wrote:
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!




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Deejay Deejay is offline
external usenet poster
 
Posts: 52
Default {If } doesn't work

Thank you both. Graham's code returns "SAVEDATE" while Stefan's (with the
right switches) returns 'Error! Too many picture switches defined'


"Graham Mayor" wrote:

You will need switches(and the slashes the right way round) to make this
work

{IF {Savedate \@ "yyyyMMdd"} {Createdate \@ "yyyyMMdd"} "{Savedate \@
"ddMMMMyyyy"}" "{Createdate \@ "ddMMMMyyyy"}"}

See 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


Deejay wrote:
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!




  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default {If } doesn't work

In the code I suggested, did you remember the quotation marks? Did you
put spaces between the first SAVEDATE field and the equal sign? If you
still can't get it to work, try using \@ "M" instead of \# "0":

{ IF { SAVEDATE \@ "M" } = 0 "{ CREATEDATE \@ "ddMMMMyyyy" }" "{
SAVEDATE \@ "ddMMMMyyyy" }" }

--
Stefan Blom
Microsoft Word MVP


"Deejay" wrote in message
...
Thank you both. Graham's code returns "SAVEDATE" while Stefan's (with

the
right switches) returns 'Error! Too many picture switches defined'


"Graham Mayor" wrote:

You will need switches(and the slashes the right way round) to make

this
work

{IF {Savedate \@ "yyyyMMdd"} {Createdate \@ "yyyyMMdd"} "{Savedate

\@
"ddMMMMyyyy"}" "{Createdate \@ "ddMMMMyyyy"}"}

See 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


Deejay wrote:
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!








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
Insert File (Range) does not work on different Work Stations Lynda Kinley Mailmerge 2 December 15th 06 12:51 PM
How to put Military work into Civilian work resumes? dsomers510 Microsoft Word Help 1 September 26th 06 07:16 PM
Make Work work properly on flat panels rotated 90deg Paul Page Layout 5 February 9th 06 11:23 PM
my sound has decided not to work, what do i check to get it work spiritual v Microsoft Word Help 1 November 23rd 05 02:55 PM
Open for editing doesn't work on word. How do I get this to work? gillmac Microsoft Word Help 5 August 14th 05 11:00 PM


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