Insert date/time missing hh:mm format in Word 2003

D

Doxigrafix

I found a problem in Word 2003. At least it is a major problem for me with my
journaling. I put the time in when I write. Well, this version of Word does
not have the plain old time, i.e. hour:minute AM or PM. It has
11:59:04 PM,
3/17/2005 11:59 PM,
and even 23:59
… but not plain old 11:59 PM! To me that is a serious omission. Is there a
fix for this, possibly in the Service Pack?
 
G

Graham Mayor

No big deal - add the following macro to a toolbar button and/or assign a
keyboard shortcut to it:

Sub InsertTimeUpperCase()
With Selection
.Collapse Direction:=wdCollapseStart
.InsertAfter Format(Time(), "hh:mm AM/PM")
.Collapse Direction:=wdCollapseEnd
End With
End Sub

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

This will insert the time with a leading zero for the hour eg 07:16 AM
If you want to lose the leading zero, change "hh:mm AM/PM" to "h:mm AM/PM"

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
D

Doxigrafix

Thank you very much for the help!
I may tattoo the URL for your site on my arm; there's a lot of information I
can use there.
Again, thank you!

Doxigrafix, Old and Starving graphic design person.
**************************************************
 
G

Graham Mayor

You are welcome

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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