View Single Post
  #5   Report Post  
Old March 18th 07, 11:16 PM posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
First recorded activity by ExcelBanter: Jul 2006
Posts: 11,058
Default NOW() function that is un-changing

To log into A1, for example:

Sub cheese()
Set r = Range("A1")
r.NumberFormat = "dd-mmm-yyyy hh:mm:ss"
r.Value = Now()
End Sub

Gary''s Student