View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
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
gsnu200711