View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Spreadsheet Solutions[_3_] Spreadsheet Solutions[_3_] is offline
external usenet poster
 
Posts: 31
Default Add Current date and time when pressing a command button

Hello;

Cells(5, 1) = Format(Now, "DD/MM/YYYY : HH/MM/SS")

The format can be adjusted according to your regional settings.


--
Regards;
Mark Rosenkrantz
--
Spreadsheet Solutions
Uithoorn
Netherlands (the country were they live some 18 feet beyond sea level)
--
E:
W:
www.spreadsheetsolutions.nl
--
"CAM" wrote in message
...

Hello,

I would like to get the current date and time when pressing a comman
button in cell A5 what would the vba code be? Any help will be
appreicated. Thank you in advance.

Regards,