Hi
Is there a way to subtract an array of string from another array of string? I have a larger array and what I need is an array which is the result of the larger array minus the other array.
Any help is appreciated.
Is there a way to subtract an array of string from another array of string? I have a larger array and what I need is an array which is the result of the larger array minus the other array.
Code:
Function HideUnwantedElements(MainArray As Variant)
Dim ToBeFilteredOut As Variant
Dim Array_Filtered As Variant
ToBeFilteredOut = Array("A9673", "A9674", "A9675", "A10066")
‘So what is next? I tried the following but it didn’t work
For m = LBound(ToBeFilteredOut) To UBound(ToBeFilteredOut)
Array_Filtered = Filter(MainArray, ToBeFilteredOut (m), False)
Next m
End Function
Any help is appreciated.