Thread
:
Change format of date when using Now function in VB code
View Single Post
03-02-2012, 11:51 AM
Colin Legg
Windows 7 32bit
Office 2010 32bit
Expert
Join Date: Jan 2011
Location: UK
Posts: 369
You need to use the Range.NumberFormat property. Something like this:
Code:
With Range("T" & target.Row) .Value = Now .NumberFormat = "dd/mm/yy - hh:mm" End With
__________________
Colin
RAD Excel Blog
Colin Legg
View Public Profile
Find all posts by Colin Legg