I am trying to get the ordinal number suffixes in a CreateDate field to automatically be formatted as superscript in new documents created from a Word template (i.e. the "th" in "14th" should be superscript).
I've found the following macro on Graham Mayor's excellent site (http://www.gmayor.com/formatting_word_fields.htm) and it works as it's supposed to, but it removes all formatting from the text and I want to maintain the font, colour and allignment settings.
Sub AutoNew()
' FormatDate Macro
Selection.GoTo What:=wdGoToBookmark, Name:="Date"
Selection.Find.ClearFormatting
With Options
AutoFormatReplaceOrdinals = True
End With
Selection.Range.AutoFormat
Selection.EscapeKey
Selection.Fields.Unlink
Selection.EndKey Unit:=wdLine
End Sub
I've played around trying to modify it but just don't have the required knowledge. I have also tried achieving a similar outcome using field codes but have been even less successful.
Any help would be much appreciated.
Thanks,
Alexis
Bookmarks