A
Aline
How do I change the code so it will copy the content of column B to column C?
A B C
Dog 2007-10-22
Cat 2008-02-02 2008-02-02
Cat 2008-02-11
Here are the codes:
Dim LastRow As Long
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
..Range("K2:K" & LastRow).Formula _
= "= IF(A2=""Cat"", B2, "" "")"
End With
Thanks,
Aline
A B C
Dog 2007-10-22
Cat 2008-02-02 2008-02-02
Cat 2008-02-11
Here are the codes:
Dim LastRow As Long
Dim wks As Worksheet
Set wks = ActiveSheet
With wks
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
..Range("K2:K" & LastRow).Formula _
= "= IF(A2=""Cat"", B2, "" "")"
End With
Thanks,
Aline