I am trying to move specific data from one sheet to another with a loop. I need the macro to look emails and then cut all the data for those rows and paste them into the next tab. I have the below code, but my .Value = "@" isn't recognized. If I do .Value = "" Then it recognizes all the blank cells. Help please, I know it's probably something super simple.
Private Sub CommandButton1_Click()
a = Worksheets("Master").Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To a
If Worksheets("Master").Cells(i, 12).Value = "@" Then
Worksheets("Master").Rows(i).Cut
Worksheets("Email").Activate
b = Worksheets("Email").Cells(Rows.Count, 1).End(xlUp).Row
Worksheets("Email").Cells(b + 1, 1).Select
ActiveSheet.Paste
Worksheets("Master").Activate
End If
Next
Application.CutCopyMode = False
ThisWorkbook.Worksheets("Master").Cells(1,1).Select
End Sub
like
instead of=
? – Jchang43