Hi,
The procedure below is designed to copy a three letter code from column A to column B only if the code is not already in column B. This is not working.
Being a novice at VBA please will someone show me where I am going wrong.
Thanks.
Rob.
The procedure below is designed to copy a three letter code from column A to column B only if the code is not already in column B. This is not working.
Being a novice at VBA please will someone show me where I am going wrong.
Code:
[LEFT]Sub Copy_code()
Do Until IsEmpty(ActiveCell)
[LEFT] If Selection.Value = Range("b:b") Then Selection.Offset(1, 0).Select Else Selection.Copy _ Range("b:b").Cells(Rows.Count).End(xlUp).Offset(1, 0)
[/LEFT]
Loop
[LEFT]End Sub[/LEFT]
[/LEFT]
Thanks.
Rob.