-
Viorel 114.7K Reputation points
2021-08-08T15:52:09.58+00:00 Try something like this:
Dim array1 As Variant array1 = Array("... cats ...", " ...Dogs ...", " ...Cats and dogs ...", "another text") Dim array2 As Variant array2 = Array() Dim t For Each t In array1 If InStr(1, t, "cats", vbTextCompare) > 0 Or InStr(1, t, "dogs", vbTextCompare) > 0 Then ReDim Preserve array2(UBound(array2) + 1) array2(UBound(array2)) = t End If Next
It is also possible to exclude words like "ducats" or "hotdogs".
Hi
I am Sagar Singh
I am a Student in Information & Communication Technology System Maintenance Course Study in ITI( Industrial Training Institute) Course duration 2 years and I am admission at 2020 and my course complete in 2022
Not a Laptop & Computer
I am study's in mobile phone