PC Review


Reply
Thread Tools Rate Thread

Add Current date and time when pressing a command button

 
 
CAM
Guest
Posts: n/a
 
      9th Dec 2008

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 With Quote
 
 
 
 
Spreadsheet Solutions
Guest
Posts: n/a
 
      9th Dec 2008
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: (E-Mail Removed)
W: www.spreadsheetsolutions.nl
--
"CAM" <(E-Mail Removed)> wrote in message
news:7360B128-1D1E-4EBB-9900-(E-Mail Removed)...
>
> 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 With Quote
 
CAM
Guest
Posts: n/a
 
      9th Dec 2008

Mark,

Thanks for the tip. I appreciate your help.

Regards


"Spreadsheet Solutions" <(E-Mail Removed)> wrote in message
news:493e1259$0$8947$(E-Mail Removed)...
> 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: (E-Mail Removed)
> W: www.spreadsheetsolutions.nl
> --
> "CAM" <(E-Mail Removed)> wrote in message
> news:7360B128-1D1E-4EBB-9900-(E-Mail Removed)...
>>
>> 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command button for current time & date joet5402 Microsoft Access Forms 0 12th Jan 2008 05:27 AM
Command button for time & date joet5402 Microsoft Access Forms 3 28th Nov 2007 12:03 PM
unhide multiple text boxes at a time after pressing a command button mjquinon via AccessMonster.com Microsoft Access Form Coding 4 11th Jun 2007 04:44 PM
Not losing focus on current textbox when pressing a different button Patrick [MSFT] Microsoft C# .NET 3 13th Sep 2006 01:40 AM
Pressing a Command Button Sharon Microsoft Access Macros 6 21st Jan 2004 07:30 PM


Features
 

Advertising
 

Newsgroups
 


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