Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default how do i get the date and time if a change is done in a worksheet


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,071
Default how do i get the date and time if a change is done in a worksheet

You don't give much to work with. The following macro, placed in the sheet
module, will put the date and time in A1. Format A1 for date and time.
Post back and provide more info on what you have and what you want. To
access the sheet module, right-click the sheet module and select View Code.
"X" out of the module to return to your sheet. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Range("A1") = Now
Application.EnableEvents = True
End Sub
"srini" wrote in message
...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default how do i get the date and time if a change is done in a worksheet

As Otto says, a bit short on info. However, if you want to have a date and
time record of every change that happens on the sheet, try this modified
version of Ottos code. Will list a date and time in column A for each
change of any cell, basically every time you hit enter or a calculation
takes place.

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
Range("A100").End(xlUp).Offset(1, 0) = Now
Application.EnableEvents = True
End Sub

If 100 entries is not enough then up the ante to:

Range("A10000").End(xlUp).Offset(1, 0) = Now

HTH
Regards,
Howard

"srini" wrote in message
...



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
Tracking change time/date nkidd Excel Worksheet Functions 1 December 13th 06 09:24 PM
how do i change all text case in a given worksheet at one time Debi Excel Worksheet Functions 2 December 1st 06 09:36 PM
change date based on time kdp145 Excel Discussion (Misc queries) 7 December 14th 05 02:05 AM
how do i keep a time/date register of every change occurred in a c Paulo Matos Excel Worksheet Functions 1 July 14th 05 07:47 PM
how do I format cells to change date and time to just date bondam Excel Discussion (Misc queries) 3 July 3rd 05 01:10 PM


All times are GMT +1. The time now is 04:22 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"