If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Insert date
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 |
#2
|
|||
|
|||
Insert date
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 "Steve" wrote in message ... 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 |
#3
|
|||
|
|||
Insert date
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 "Steve" wrote in message ... 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 |
#4
|
|||
|
|||
Insert date
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 My web site www.gmayor.com Word MVP web site http://word.mvps.org Steve wrote: Is there a way to customize the Insert Date function? I want the format to look like this: Tues 3/11/09 Thanks! |
#5
|
|||
|
|||
Insert date
"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 |
#6
|
|||
|
|||
Insert date
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 "Steve" wrote in message ... "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 |
#7
|
|||
|
|||
Insert date
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 "Steve" wrote in message ... "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 |
#8
|
|||
|
|||
Insert date
"Suzanne S. Barnhill" wrote:
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 |
#9
|
|||
|
|||
Insert date
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 "Steve" wrote in message ... "Suzanne S. Barnhill" wrote: 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 |
Thread Tools | |
Display Modes | |
|
|