Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hey all,
I have this code (which I got from this forum... thank you!) in a worksheet but I need a format code as well. Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False Range("A" & Target.Row).Value = Date & Time Application.EnableEvents = True End Sub Excel is returning this format: 11/21/20089:10:55 AM (This is correct except it's formatted wrong) I've tried formating the cells to: m/d/yy h:mm but I still get the above format. The only thing I can conclude is that I must have a format command in the code as well. Please help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
problem with auto update of date and time | Excel Worksheet Functions | |||
auto update of date and time whenever changes are made to a xcel s | Excel Worksheet Functions | |||
how do i auto insert a date and time stamp | Excel Discussion (Misc queries) | |||
Auto insert Date & Time when another cell is populated | Excel Discussion (Misc queries) | |||
Auto insert date/time | Excel Worksheet Functions |