insert date in a column when information is entered in another column

M

Millie

Let's say I have column A and I want to add a date so that I know what date someone updated column A. Is there anyway to add a date to the end of anything someone types, or should I make exel populate a date in column B when something is entered in column A. If so what is the argument??? help hel

Another question, If I have a columnA called status and the status changes to a particular value, is there a way to auto email , if the email address is in columnB
 
P

Peo Sjoblom

See

http://tinyurl.com/yf1c

there you'll find both a macro and a formula way

--

Regards,

Peo Sjoblom


Millie said:
Let's say I have column A and I want to add a date so that I know what
date someone updated column A. Is there anyway to add a date to the end of
anything someone types, or should I make exel populate a date in column B
when something is entered in column A. If so what is the argument??? help
help
Another question, If I have a columnA called status and the status changes
to a particular value, is there a way to auto email , if the email address
is in columnB
 
J

J.E. McGimpsey

One way:

Put this in the worksheet code module (right-click on the worsheet
tab and choose view code):

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count > 1 Then Exit Sub
If .Column = 1 Then ' Entry in column A
With .Offset(0, 1)
.NumberFormat = "dd mmm yyyy"
.Value = Date
End With
End If
End With
End Sub
 
M

millie

why when i change the column to D does it quit working....example...i want the date to be in column e

----- J.E. McGimpsey wrote: ----

One way

Put this in the worksheet code module (right-click on the worsheet
tab and choose view code)

Private Sub Worksheet_Change(ByVal Target As Excel.Range
With Targe
If .Count > 1 Then Exit Su
If .Column = 1 Then ' Entry in column
With .Offset(0, 1
.NumberFormat = "dd mmm yyyy
.Value = Dat
End Wit
End I
End Wit
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top