display date modified instead of value entered

mieliepap

New Member
Joined
Apr 15, 2011
Messages
12
I have a spreadsheet which uses visual basic code to display the date that a call was modified. it displays the date in a different cell on the same line. What I would like it to do is display the date instead of the value entered in the cell, for example if i enter "y" into a cell (could be any value) the cell would display the date that this cell was modified instead of the "y".

How the data will be entered [TABLE="width: 500"]
<tbody>[TR]
[TD]project[/TD]
[TD]check 1[/TD]
[TD]check 2[/TD]
[TD]check 3[/TD]
[TD]check 4[/TD]
[TD]check 5[/TD]
[TD]etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]project a[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]projects b[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What I want it to look like [TABLE="width: 500"]
<tbody>[TR]
[TD]project[/TD]
[TD]check 1[/TD]
[TD]check 2[/TD]
[TD]check 3[/TD]
[TD]check 4[/TD]
[TD]check 5[/TD]
[TD]etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]project a[/TD]
[TD]25 Dec[/TD]
[TD]2 Jan[/TD]
[TD]21 Jan[/TD]
[TD]25 Jan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]projects b[/TD]
[TD]14 Jan[/TD]
[TD]25 Jan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

(these dates would be the dates the "y" (or another value if that's easier) is entered on)
possible?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
something like this should do

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If UCase(Target) = "Y" Then Target = Format(Now, "dd mmmm")
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top