Heather_Llo
New Member
- Joined
- Feb 16, 2018
- Messages
- 17
Hi,
I am getting said error on this line:
I am wondering if anyone can help me to diagnose the problem. I'm new to Excel and not entirely sure what I'm doing. Learning steadily but slowly.
Thanks!
I am getting said error on this line:
Of this macro:.EntireRow.Cut Destination:=Sheets("Need to E-mail").Range("B" & Rows.Count).End(xlUp).Offset(1, -2)
That I jacked from this topic: https://www.mrexcel.com/forum/excel-questions/685654-simple-macro-cut-paste-based-cell-value.htmlSub NeedEmail()Dim LR As Long, i As Long
With Sheets("Working")
LR = .Range("B" & Rows.Count).End(xlUp).Row
For i = 1 To LR
With .Range("B" & i)
If .Value Like "*Interested*" Then .EntireRow.Cut Destination:=Sheets("Need to E-mail").Range("B" & Rows.Count).End(xlUp).Offset(1, -2)
End With
Next i
End With
End Sub
I am wondering if anyone can help me to diagnose the problem. I'm new to Excel and not entirely sure what I'm doing. Learning steadily but slowly.
Thanks!