i need help getting this code to paste in next empty cell to right.
the code only paste in column B. i need-if column B is not blank then use next cell to right.
the code only paste in column B. i need-if column B is not blank then use next cell to right.
Code:
Dim ThisCell1 As Range
Dim ThisCell2 As Range
Application.ScreenUpdating = False
For Each ThisCell1 In Sheets("sheet1").Range("A1:A1089")
For Each ThisCell2 In Sheets("sheet0").Range("b2:b3392")
If ThisCell1.Value = ThisCell2.Value Then
ThisCell2.Offset(0, 1).Copy
ThisCell1.Offset(0, 1).PasteSpecial Paste:=xlPasteValues
Exit For
End If
Next ThisCell2
Next ThisCell1
Application.ScreenUpdating = True