Please, does somebody how to do this:
I have two worksheets: 1 with mail adresses, and a second one with (some of these) mailaddresses.
The script should start at top of the list, see if the mail address exists at in worksheet 2, column 5. If it does, it should copy the values to worksheet 3. If not, it should make copy the mail adress with a note to samen worksheet 3.
A search on the forums and google did not help much, only the bit below I found. Although I know a bit how VBscript works, I have a hard time in finding the right 'objects' and methods and so on. This already works:
Sub test2()
Set egmnWS = Worksheets("sheet1")
Set elnlWS = Worksheets("sheet2")
Set testWS = Worksheets("sheet3")
testX = Cells.Find('sheet1'!$A$1, LookIn:=xlValues, LookAt:=xlPart)
testWS.Cells(1, 1).Value = testX
End Sub
How to understand the parms of " testX = Cells.Find('sheet1'!$A$1, LookIn:=xlValues, LookAt:=xlPart)" ?
How does copying values from one sheet to another work?
I tried to find tutorials on this, but was not lucky in finding how to put it in a cell for example.
Thank you!
Michael