Hi,
I have written some code to add items to an array, what I would like to do now is to check if any of the cell contents in worksheet Codes a variable length range from A1 matches any of the values in the array, if it does then I would like the value of cell B in that row change to "Yes"
here is the code I have so far
Any help would be great
Regards Damian
I have written some code to add items to an array, what I would like to do now is to check if any of the cell contents in worksheet Codes a variable length range from A1 matches any of the values in the array, if it does then I would like the value of cell B in that row change to "Yes"
here is the code I have so far
Code:
Sub test()
Dim codes
Dim x As Long
Dim ws As Worksheet
Dim ws1 As Worksheet
Set ws = Sheets("Data")
Set ws1 = Sheets("Codes")
codes = ws.Range(ws.Range("A1"), ws.Range("A" & Rows.Count).End(xlUp))
For x = LBound(codes) To UBound(codes)
Next x
End Sub
Any help would be great
Regards Damian