I use the code below to match a single value in Cell B1 and populate the corresponding info through out the spreadsheet. Instead of a single value in cell B1 I'd there to be multiple values in cell B1 so I can combine multiple reports together.
Currently the value in Cell B1 is something like: 01, and the report will be everything tagged with 01 through the text matching. I'd like the macro to recognize multiple values in a format like: 01, 02 so the report will include everything tagged with 01 and 02.
How can I modify this to include the If code : If Teri = Sheets("Teri Acuna").Range("B1") to recognize both 01, 02 tags?
Dim Teri As Range
Application.ScreenUpdating = False
For Each Teri In Sheets("Project").Range("C2", Sheets("Project").Range("C" & Rows.Count).End(xlUp))
If Teri = Sheets("Teri Acuna").Range("B1") Then
Sheets("Teri Acuna").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = Teri.Offset(0, -1)
End If
Next Teri
Application.ScreenUpdating = True
End Sub
Currently the value in Cell B1 is something like: 01, and the report will be everything tagged with 01 through the text matching. I'd like the macro to recognize multiple values in a format like: 01, 02 so the report will include everything tagged with 01 and 02.
How can I modify this to include the If code : If Teri = Sheets("Teri Acuna").Range("B1") to recognize both 01, 02 tags?
Dim Teri As Range
Application.ScreenUpdating = False
For Each Teri In Sheets("Project").Range("C2", Sheets("Project").Range("C" & Rows.Count).End(xlUp))
If Teri = Sheets("Teri Acuna").Range("B1") Then
Sheets("Teri Acuna").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = Teri.Offset(0, -1)
End If
Next Teri
Application.ScreenUpdating = True
End Sub