I need to loop though a cell range that contains one or several locale ISO codes in a CSV fashion e.g esES, frFR, itIT, etc.
If ANY of these values are contained within a cell, I select it and paste it to another workbook. The latter part I got covered, but I can't figure how to make the former part work. This is the code I'm working with at the moment:
OTHERS_V = "*arAR*|*bgBG*|*csCZ*|*daDK*"
For Each cell In Intersect(Sheets("Requests").Range("G:G"), Sheets("Requests").UsedRange)
If cell.Value Like OTHERS_V Then [...]
I'm pretty new to VBA and I don't know much about Regex in this language but from my experience this should read something like:
(anything + "arAR" + anything) OR (anything + "bgBG" + anything) OR [...]
etc.
It doesn't seem to work though. How would you go about accomplishing what I'm after in this context?