Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Add Current date and time when pressing a command button


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,


  #2   Report Post  
Posted to microsoft.public.excel.programming
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,



  #3   Report Post  
Posted to microsoft.public.excel.programming
CAM CAM is offline
external usenet poster
 
Posts: 65
Default Add Current date and time when pressing a command button


Mark,

Thanks for the tip. I appreciate your help.

Regards


"Spreadsheet Solutions" wrote in message
...
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,




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command button auto select after pressing Enter Bafa[_12_] Excel Programming 3 August 21st 06 07:58 AM
Button to set current time Mariner Excel Programming 4 July 26th 06 01:31 AM
Command Button Date/Time Stamp sky Excel Programming 4 January 11th 06 12:04 AM
How can i use a command button to validate date and time kcdonaldson Excel Discussion (Misc queries) 0 December 9th 05 04:03 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM


All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"