asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Code:
Private Sub CommandButton1_Click()
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With Range("A" & i)
If .Text = Range("U1").Text Then
.Offset(, 1).Resize(, 5).Copy
Range("H" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
End If
End With
Next i
End Sub
How can I update that code if the Source Range changed from Column A to C and then will put related column datas as given below?
H: A
I: B
J: D
K: E
Last edited: