Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need military time 1

Status
Not open for further replies.

renartbrazil

Technical User
Dec 12, 2003
42
US
Is there an easy fix to format this for miltary time?
This is what it looks like now.
3/14/2005 1:55:24 PM
I am trying to get this format though.
3/14/2005 13:55


<code>Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
Target(1, 3) = Date
Target(1, 4) = Time
End If
If Target.Column = 5 Then
Target(1, 3) = Date
Target(1, 4) = Time
End If
End Sub</code>
 
Have you tried the macro recorder when you change the cell's format ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top