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
projectcheck 1check 2check 3check 4check 5etc
project ayyyy
projects byy

<tbody>
</tbody>

What I want it to look like
projectcheck 1check 2check 3check 4check 5etc
project a25 Dec2 Jan21 Jan25 Jan
projects b14 Jan25 Jan

<tbody>
</tbody>

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

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

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