![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2009
Posts: 5
OS: XP
|
Hi there,
I just have a quick question regarding date & time stamp in Excel.. Let's say I want to make a cell dedicated to track the date and time a macro was run. For example, If I ran a certain Macro today, right now - it would say 2/2/2009 11:42 (but the data is actually 2/2/2009 11:42:08 AM) I want to write Macro so that it would keep track of this date and time. If However I realize I can't use DATE() or NOW() since it will always use the actual date and time and Not the date and time the macro was last ran. Is there any way to track or record the date and time Macros are run? Is that even possible? ![]() Thanks in advance for your time and help! -styl3zkp |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Mar 2008
Posts: 69
OS: XP SP2, Vista
|
Re: Date and Time stamp question in Excel
Just add this line into your Macro code:
Range("A1").Value = Now() Change A1 to whatever cell you want to place the date in. This way, cell A1 will only update when the macro is run, and will display the current date/time that the macro was last run. HTH Elkar |
|
|
|
![]() |
| Thread Tools | |
|
|