Right click sheet tab>view code> insert this
Now whenever you input y or Y in col B, col A will get the date

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Or Target.Column <> 2 Then Exit Sub
If UCase(Target) = "Y" Then Target.Offset(, -1) = Date
End Sub

Don Guillett
SalesAid Software
dguille...@gmail.com

From: Mohammed Muneer 
Sent: Monday, February 27, 2012 9:55 PM
To: excel-macros@googlegroups.com 
Subject: $$Excel-Macros$$ If I input Letter Y is should show the current 
date.......(28-Feb-2012) like this......

Dear Friends have a nice day,

 

I have a small question.

 

For example, I have two cols A and B as shown below one is for date & the other 
have letter “Y”.

 

        A                      B

 

28-feb-2012               Y

 

Can I do it like this? If I input letter “Y” in the column B I can display the 
current date.

 

Regards,

Muneer,

CC...

            

 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to