Hello.
I'm trying desperately to create a field in Word 2007 which should display
todays day and the ordinal suffix (e.g. 27th).
So far I've managed to find out, that by adding \*Ordinal to the field
syntax, the ordinal suffix should display (and it indeed does).
The crash:
If I right-click a field, which has the mentioned \*Ordinal in it's syntax,
and choose "edit field" (which should open up the mask for fields), Word
crashes. This behaviour is 100% repeatable.
The issue:
As mentioned, it's possible to add the \*Ordinal option to a field when
using the option "field function on/off". What I'd like to do, is to format
the ordinal suffix in superscript. Any ideas on how to do that?
I'd be more than happy over any inputs or additionnal comments on the issues
above.
Kind regards, Chris
Just select the ordinal and format it.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
> Hello.
>
[quoted text clipped - 20 lines]
>
> Kind regards, Chris
Christian Schratter - 05 Mar 2009 00:22 GMT
I tried that, but that's a one time fix - if I update the field the formating
will be lost.
"Doug Robbins - Word MVP on news.microsof" wrote:
> Just select the ordinal and format it.
Hi Christian,
Instead of trying to incorporate the ordinal numbering into your formfield, insert a formula field immediately after it, coded as:
{IF{=(MOD({=Text1+89},100)>2)*(MOD({=Text1+9},10)<3)}= 1 {=MOD(Text1,10)-2 \# rd;st;nd} th}
Where 'Text1' is your formfield's bookmark name. Be sure to check the 'calculate on exit' option also.
With this approach, you can also superscript the 'rd', 'st', 'nd' and 'th'
Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message.
For more information on working with dates in Word, check out my Word Date Calculation Tutorial, at:
http://www.wopr.com/index.php?showtopic=249902&st=0&p=249902&#entry249902
or
http://www.gmayor.com/downloads.htm#Third_party
Do read the document's introductory material.

Signature
Cheers
macropod
[MVP - Microsoft Word]
> Hello.
>
[quoted text clipped - 17 lines]
>
> Kind regards, Chris
Christian Schratter - 05 Mar 2009 01:29 GMT
Thank you very much for your reply.
Your suggestion sounds like a reasonable workaround for the mentioned
issues. Sadly I couldn't go and try out your idea straight away, because I'm
not sure what you mean with "formfield's bookmark name"?
Looking forward to hearing from you.
Kind regards, Chris
> Hi Christian,
>
[quoted text clipped - 34 lines]
> >
> > Kind regards, Chris
macropod - 05 Mar 2009 05:02 GMT
Hi Christian,
I took your post to indicate that you're having problems with formfield formatting. If you check a formfield's properties, you'll
see that it has provision for a bookmark name and to set it to 'calculate on exit'. You can also restrict input to a specific format
(eg 2-digit numeric).

Signature
Cheers
macropod
[MVP - Microsoft Word]
> Thank you very much for your reply.
>
[quoted text clipped - 45 lines]
>> >
>> > Kind regards, Chris
Christian Schratter - 05 Mar 2009 11:08 GMT
Now I understand what you're referencing to.
Though, I'm not using form fields, but those kind of fields, which you can
find under Insert -> Quick Parts -> Fields.
If I add such a field which displays the current date, then I think I can't
give it a name, right?
Kind regards, Chris
> Hi Christian,
>
> I took your post to indicate that you're having problems with formfield formatting. If you check a formfield's properties, you'll
> see that it has provision for a bookmark name and to set it to 'calculate on exit'. You can also restrict input to a specific format
> (eg 2-digit numeric).
macropod - 05 Mar 2009 21:01 GMT
Hi Christian,
You could bookmark the date field. Did you check out the topic 'Insert A Date with Ordinal Numbering' in my DateCalc tutorial?

Signature
Cheers
macropod
[MVP - Microsoft Word]
> Now I understand what you're referencing to.
>
[quoted text clipped - 11 lines]
>> format
>> (eg 2-digit numeric).
Christian Schratter - 05 Mar 2009 23:51 GMT
Thank you for that hint - with your workaround the issue is solved now.
One more thing: did you check if the description given for the crash in my
first posting is reproducable on your machine as well? If so, shall we sign a
bug report somewhere?
Kind regards, Chris
> Hi Christian,
>
> You could bookmark the date field. Did you check out the topic 'Insert A Date with Ordinal Numbering' in my DateCalc tutorial?
macropod - 06 Mar 2009 02:58 GMT
Hi Christian,
Yes, I've just tried it with Word 2007, and it does indeed cause a crash. I'll report it.

Signature
Cheers
macropod
[MVP - Microsoft Word]
> Thank you for that hint - with your workaround the issue is solved now.
>
[quoted text clipped - 7 lines]
>>
>> You could bookmark the date field. Did you check out the topic 'Insert A Date with Ordinal Numbering' in my DateCalc tutorial?