R
Randy F
I am compairing 2 lists of names and if the name on list1
showes up on list2 i then copy cells from clm e & f next
to the name in list1, but i cant get my macro to step
through the range, or for example go from range a2 too a3
here is my macro
Sub wrk()
Dim nm As Range, of As Range
Set nm = Worksheets("Names").Range("a2")
Set of = Worksheets("Names").Range("b2")
Worksheets("Data").Activate
Range("e2").Select
For Each c In [A2:A200]
If c.Value Like (nm) Then
ActiveCell.Value = (of)
End If
Selection.Offset(1, 0).Select
Next
End Sub
Thanks
RDY
showes up on list2 i then copy cells from clm e & f next
to the name in list1, but i cant get my macro to step
through the range, or for example go from range a2 too a3
here is my macro
Sub wrk()
Dim nm As Range, of As Range
Set nm = Worksheets("Names").Range("a2")
Set of = Worksheets("Names").Range("b2")
Worksheets("Data").Activate
Range("e2").Select
For Each c In [A2:A200]
If c.Value Like (nm) Then
ActiveCell.Value = (of)
End If
Selection.Offset(1, 0).Select
Next
End Sub
Thanks
RDY