I'm trying to make a spreadsheet that checks all cells in a given range on one sheet and then displays relevant information in a separate form in another sheet. Long story short I got a code to work, but it only looks for the cell value. For this examply I just want it to find "OCC" out of
[TABLE="width: 448"]
<tbody>[TR]
[TD="width: 448"]"OCC #OUTS , INC #18-2142 - MEDT - MED-Transfer"
Here's my code I'm working with now
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any help given.
[TABLE="width: 448"]
<tbody>[TR]
[TD="width: 448"]"OCC #OUTS , INC #18-2142 - MEDT - MED-Transfer"
Here's my code I'm working with now
Code:
Sub Test()
Dim SrchRng As Range, cel As Range
Set SrchRng = Sheets("Sheet1").Range("A1:A100")
For Each cel In SrchRng
If cel.Value = "OCC" Then
Sheets("Sheet2").Range("B1:B1") = cel.Value
End If
Next
End Sub
[/TR]
</tbody>[/TABLE]
Thanks for any help given.