Insert date

S

Steve

Is there a way to customize the Insert Date function? I want the
format to look like this:

Tues 3/11/09

Thanks!


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
 
D

Doug Robbins - Word MVP on news.microsoft.com

Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are more
common abbreviations and for which you can use

{ Date \@ "ddd M/d/yy" }

There is however no switch that would give you Mond, Tues, Wedn, Thur, Frid,
Satu, Sund

--
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
 
S

Suzanne S. Barnhill

In the Insert | Date dialog, you can choose your default date format. In
order to make the format you suggest available, you may have to have this
selected as your default Short Date format in Windows Regional and Language
Options.

Alternatively, if you are using a DATE field, you can add a time/date
formatting switch to result in that format and save the field as an AutoText
entry.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
G

Graham Mayor

You could insert the date with a macro e.g. the following will insert the
days as
Mon
Tues
Wed
Thurs
Fri
Sat
Sun

Dim sDay As String
sDay = format(Date, "dddd")
Select Case sDay
Case Is = "Monday", "Wednesday", "Friday", "Saturday", "Sunday"
sDay = format(Date, "ddd")
Case Is = "Tuesday"
sDay = Left(sDay, 4)
Case Is = "Thursday"
sDay = Left(sDay, 5)
End Select
With Selection
.TypeText sDay & Chr(160)
.InsertDateTime DateTimeFormat:="M/d/yy", InsertAsField:=False
End With

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Steve

"Doug Robbins - Word MVP on news.microsoft.com"
Do you really want Tues or Mon, Tue, Wed, Thu, Fri, Sat, Sun, which are more
common abbreviations and for which you can use
{ Date \@ "ddd M/d/yy" }

Thanks Doug, that's the format I'm looking for. But I'm not sure how
to use this formula - in a macro?


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
 
D

Doug Robbins - Word MVP on news.microsoft.com

In a macro, use

Format(Date, "ddd M/d/yy")

--
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
 
S

Suzanne S. Barnhill

No, it's just a field. Press Ctrl+F9 to insert the field (which will be
displayed at { }), then type the text between the braces.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
S

Steve

Suzanne S. Barnhill said:
No, it's just a field. Press Ctrl+F9 to insert the field (which will be
displayed at { }), then type the text between the braces.

I end up with this: { Date \@ "ddd M/d/yy" }

But it doesn't convert to anything, looks like I'm still doing it
wrong. Sigh...


--

To avoid situations in which you might make mistakes
may be the biggest mistake of all.

....Peter McWilliams
 
S

Suzanne S. Barnhill

Well, you then have to F9 to update (and Alt+F9 if necessary to toggle the
field display). Alternatively, you can type Date \@ "ddd M/d/yy", select it,
and press Ctrl+F9, then F9.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top