Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default STORE THE DATE & TIME THE VALUE HAS CHANGED IN A CELL

Need to store the Date & Time whenever a value is entered to a cell.
If a value is entered to celle B3 then the current date & time should be
saved in C3.

I used the following in cell C3

=IF(B3<"", NOW()," " )

But whenever any operation is done in a cell the Date & Time gets the
current value which I dont want to happen.

Thanks Asoka
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default STORE THE DATE & TIME THE VALUE HAS CHANGED IN A CELL

You need an event sub for that:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "B3" Then
Cells(Target.Row, Target.Column + 1) = Date + Time
End If
End Sub

This works only for B3, post if you want to expand its range or need help to
install it!

Regards,
Stefi

€žAsoka Walpitagama - Brandix College IT€ť ezt Ă*rta:

Need to store the Date & Time whenever a value is entered to a cell.
If a value is entered to celle B3 then the current date & time should be
saved in C3.

I used the following in cell C3

=IF(B3<"", NOW()," " )

But whenever any operation is done in a cell the Date & Time gets the
current value which I dont want to happen.

Thanks Asoka

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
can i see the date the last time a cell was changed? JohnNuTek New Users to Excel 3 May 10th 07 11:32 PM
permanent time and date stamp for Excel --- so it cant be changed TR clvgis Excel Discussion (Misc queries) 1 December 30th 06 01:23 AM
when i enter time in cell it changed, why? Hassan Excel Worksheet Functions 1 June 9th 06 01:38 AM
Pull and store a value on specific date in another cell Brian Excel Worksheet Functions 3 November 1st 05 10:49 PM
store file saved date in cell Martin Connelly Excel Worksheet Functions 1 November 16th 04 01:32 PM


All times are GMT +1. The time now is 07:31 AM.

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

About Us

"It's about Microsoft Excel"