I need what seems to be a fairly straightforward and simple macro, but I haven't written VBA in over a year and keep drawing blanks. Here's what I'm trying to do in pseudo-code.
Any snippets of code or links to appropriate documentation are appreciated. I'll be browsing documentation and seeing if I can figure this out on my own in the mean time.
Code:
lRow = 2
Do
Search Sheet2.ColumnA for value matching Sheet1.ColumnA.Row(lRow)
If matching value is found Then
copy corresponding value in Sheet2.ColumnB to Sheet1.ColumnD.Row(lRow)
lRow++
Loop Until Len(Cells(lRow, A)) = 0
Any snippets of code or links to appropriate documentation are appreciated. I'll be browsing documentation and seeing if I can figure this out on my own in the mean time.