Can you help me make VBA script that will search values cells in column Sheet1 H:H (every row with data), if it finds the value in Sheet 2 H:H, it will copy offset -6 from sheet 1 and paste offset -6 in sheet 2.
If it dont find anything it will tell me which values it didnt find.
THis is what i have so fare, working but not optimal, firstly i dont get information of the "NOT" Found values, and if it is not found, it will just overwrite and copy that item anyway.
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Dim oCell As Range
Dim i As Long
i = 2
Set ws1 = ThisWorkbook.Sheets("Data")
Set ws2 = ThisWorkbook.Sheets("Mellomlagring")
Do While ws1.Cells(i, 1).Value <> ""
Set oCell = ws2.Range("H:H").Find(what:=ws1.Cells(i, 8))
If Not oCell Is Nothing Then ws1.Cells(i, 2) = oCell.Offset(0, -6)
i = i + 1
Loop
Set ws1 = Nothing
Set ws2 = Nothing
Thank you for your help
Give this a try: