I
insert your name here
Hi all
I'm trying to create a macro that inserts the current date to replace
the selected text (not as a field).
------------------
Selection.InsertDateTime DateTimeFormat:="dd MMMM yyyy", InsertAsField:=
False, DateLanguage:=wdEnglishUK,
CalendarType:=wdCalendarWestern, InsertAsFullWidth:=False
------------------
is easy enough and gives me the date as 18 May 2007 but I need to insert
it as 18th May 2007 with the ordinal (st,nd,rd) in superscript.
I think that it's something to do with \* ordinal but I can't for the
life of me work out how the syntax goes. And I can't even begin to guess
how to do the superscripting!
Yes, I know it's a silly way of formatting a date - it wasn't my idea
Thanks all
I'm trying to create a macro that inserts the current date to replace
the selected text (not as a field).
------------------
Selection.InsertDateTime DateTimeFormat:="dd MMMM yyyy", InsertAsField:=
False, DateLanguage:=wdEnglishUK,
CalendarType:=wdCalendarWestern, InsertAsFullWidth:=False
------------------
is easy enough and gives me the date as 18 May 2007 but I need to insert
it as 18th May 2007 with the ordinal (st,nd,rd) in superscript.
I think that it's something to do with \* ordinal but I can't for the
life of me work out how the syntax goes. And I can't even begin to guess
how to do the superscripting!
Yes, I know it's a silly way of formatting a date - it wasn't my idea
Thanks all