I have this code:
Code
Set AR1 = CreateObject("System.Collections.ArrayList")
Set AR2 = CreateObject("System.Collections.ArrayList")
AR1.Add CP32.EmpNumbers '// A range passed from a class module, which creates a 2nd dimension
AR2.Add PP32.EmpNumbers '// Same as above
For Each aVar In AR1(0)
If Not AR2(0).Contains(aVar) Then .Columns(1).Find(aVar).Offset(0, 6).Value = "Y"
Next aVar
Display More
(I've simplified the code to highlight the problem - I'm not using ArrayLists for no reason!)
Now, the
doesn't appear to be a plausible method - so how can I check if AR2(0) contains the item from AR1(0)?
Do I need to dump AR2(0) into a single dimension array and check that instead?
Cheers guys